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
3 changes: 3 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ jobs:
- os: windows-latest
php: '8.4'
stability: prefer-stable
- os: ubuntu-latest
php: '8.5'
stability: prefer-stable

name: P${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }}

Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to `open-ai` will be documented in this file.

## 6.3.1 - 2026-10-21

- Documentation: add a notice for the PHP runtime security advisory of 21 Oct 2026 (CVE-2026-109618, CVE-2026-109619). These are PHP engine vulnerabilities; no library code changes are required. Update PHP to 8.5.12, 8.4.27, 8.3.36 or 8.2.35 (or a vendor-patched package). See the [advisory](https://www.php.net/archive/2026.php#2026-10-21-5).
- CI: add PHP 8.5 to the test matrix.
- CI: bump `actions/checkout` to v7, `stefanzweifel/git-auto-commit-action` to v7, and `dependabot/fetch-metadata` to v3.1.0 (#172, #173, #174).

## 6.3.0 - 2026-10-11

- Add `setThrowOnError(bool $throw = true)` and `OpenAiException` to cleanly throw and catch API error responses (status 400+) with error type, code, and status.
Expand Down
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@
A community-maintained PHP client for the OpenAI REST API, with streaming support.
Requires PHP 7.4+ and the native cURL and JSON extensions, with no third-party runtime dependencies.

> [!WARNING]
> **PHP runtime security advisory (21 Oct 2026):** CVE-2026-109618 and CVE-2026-109619 allow
> unauthenticated remote code execution in PHP itself, independent of this library. Update to
> PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35, or your vendor's patched package. PHP 7.4–8.1 receive no
> official releases; use an LTS vendor or the
> [source backports](https://github.com/php/php-src/tree/PHP-8.1-CVE-2026-109618-109619).
> See the [official advisory](https://www.php.net/archive/2026.php#2026-10-21-5).

See [API_COVERAGE.md](API_COVERAGE.md) for endpoint coverage and
[MIGRATING.md](MIGRATING.md) for breaking changes from earlier versions.

Expand Down Expand Up @@ -1096,7 +1104,7 @@ Stored chat tests poll briefly because persistence can be asynchronous.
Models can be selected with `OPENAI_CHAT_MODEL`, `OPENAI_IMAGE_MODEL`, `OPENAI_COMPACTION_MODEL`,
`OPENAI_DECISION_MODEL`, and `OPENAI_REALTIME_MODEL`. Defaults follow the examples and current guides.
Additional account-dependent tests and required fixtures are documented in [API_COVERAGE.md](API_COVERAGE.md).
Push/PR CI runs native transport and signature checks on PHP 7.4 and 8.4; manually dispatch the Tests
Push/PR CI runs native transport and signature checks on PHP 7.4, 8.4 and 8.5; manually dispatch the Tests
workflow with an `OPENAI_API_KEY` repository secret to run the live suite. Add the optional
`OPENAI_ADMIN_KEY` secret to include organization Usage and Costs tests.

Expand Down