Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/publish-packagist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Publish Packagist
on:
workflow_dispatch:

jobs:
publish:
name: publish
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6

- name: Publish to Packagist
run: |-
curl --fail-with-body -X POST -H 'Content-Type: application/json' "https://packagist.org/api/update-package?username=${PACKAGIST_USERNAME}&apiToken=${PACKAGIST_SAFE_KEY}" -d '{"repository":"https://www.github.com/browserbase/stagehand-php"}'
env:
PACKAGIST_USERNAME: ${{ secrets.STAGEHAND_PACKAGIST_USERNAME || secrets.PACKAGIST_USERNAME }}
PACKAGIST_SAFE_KEY: ${{ secrets.STAGEHAND_PACKAGIST_SAFE_KEY || secrets.PACKAGIST_SAFE_KEY }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ playground/
*.swo
*.swp
vendor/

# do not edit! excludes generated files used internally
.artifacts/
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "3.11.0"
".": "3.12.0"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 8
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fstagehand-8fbb3fa8f3a37c1c7408de427fe125aadec49f705e8e30d191601a9b69c4cc41.yml
openapi_spec_hash: 48b4dfac35a842d7fb0d228caf87544e
config_hash: 242651c4871c2869ba3c2e3d337505b9
config_hash: 7386d24e2f03a3b2a89b3f6881446348
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 3.12.0 (2026-01-31)

Full Changelog: [v3.11.0...v3.12.0](https://github.com/browserbase/stagehand-php/compare/v3.11.0...v3.12.0)

### Features

* Removed MCP from readme for now ([94848f5](https://github.com/browserbase/stagehand-php/commit/94848f59fbdad4ace2f3a51303e1b3703a91bc15))


### Chores

* **internal:** ignore stainless-internal artifacts ([fa1d9e6](https://github.com/browserbase/stagehand-php/commit/fa1d9e675e935a164d96664b64e6688e7b1a66c0))

## 3.11.0 (2026-01-29)

Full Changelog: [v3.10.0...v3.11.0](https://github.com/browserbase/stagehand-php/compare/v3.10.0...v3.11.0)
Expand Down
16 changes: 2 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,22 +77,10 @@ The REST API documentation can be found on [docs.stagehand.dev](https://docs.sta

## Installation

To use this package, install via Composer by adding the following to your application's `composer.json`:

<!-- x-release-please-start-version -->

```json
{
"repositories": [
{
"type": "vcs",
"url": "git@github.com:browserbase/stagehand-php.git"
}
],
"require": {
"browserbase/stagehand": "dev-main"
}
}
```
composer require "browserbase/stagehand 3.12.0"
```

<!-- x-release-please-end -->
Expand Down
2 changes: 1 addition & 1 deletion src/SSEStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ private function parsedGenerator(): \Generator
}

if ($data = $row['data'] ?? '') {
if (str_starts_with($data, needle: 'finished')) {
if (str_starts_with($data, needle: '{"data":{"status":"finished"')) {
$done = true;

continue;
Expand Down
2 changes: 1 addition & 1 deletion src/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
namespace Stagehand;

// x-release-please-start-version
const VERSION = '3.11.0';
const VERSION = '3.12.0';
// x-release-please-end