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 }}
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.9.1"
".": "3.10.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-43e6dd4ce19381de488d296e9036fea15bfea9a6f946cf8ccf4e02aecc8fb765.yml
openapi_spec_hash: f736e7a8acea0d73e1031c86ea803246
config_hash: 75b561cd2ba925e4f2a62ec2f1d13738
config_hash: b375728ccf7d33287335852f4f59c293
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 3.10.0 (2026-01-29)

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

### Features

* Update stainless.yml for project and publish settings ([5a2f5e5](https://github.com/browserbase/stagehand-php/commit/5a2f5e551624d6a57f5a00f4f19e239474034796))

## 3.9.1 (2026-01-29)

Full Changelog: [v3.9.0...v3.9.1](https://github.com/browserbase/stagehand-php/compare/v3.9.0...v3.9.1)
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.10.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.9.1';
const VERSION = '3.10.0';
// x-release-please-end