NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist, #473 most downloaded on Packagist
OpenAI PHP is a supercharged PHP API client that allows you to interact with the Open AI API
Latest stable
v0.22.0
Last release 23 days ago
31 Oct 2026
Ships fairly regularly
a new release about every 5 weeks
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
65 releases · first in 2022
Drag across the ruler to compare, or tap a release to open it.
Fix missing chunking strategy in vector store file responses by @midhunmonachan in #805
Full Changelog: v0.21.0...v0.22.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
feat(OpenAI): add support for programmatic tool calling in Responses API by @e4se in #790
Full Changelog: v0.20.1...v0.21.0
build(deps): bump shivammathur/setup-php from 2.37.1 to 2.37.2 by @dependabot [bot] in #782
Full Changelog: v0.20.0...v0.20.1
fix missing sequence numbers by @madskildegaard in #764
Full Changelog: v0.19.2...v0.20.0
fix: reasoning streaming by @L3o-pold in #751
phase property to OutputMessage by @Copilot in #754Full Changelog: v0.19.1...v0.19.2
Fix syntax error in README.md example code by @simonschaufi in #741
OutputImageGenerationToolCall by @Androbin in #742Full Changelog: v0.19.0...v0.19.1
feat: Responses streaming types by @madskildegaard in #711
file_id is null and file_data is not present in the API response by @romainnorberg in #715url on web search output by @iBotPeaches in #733Full Changelog: v0.18.0...v0.19.0
Feature/nano banana by @nmdimas in #685
Full Changelog: v0.17.1...v0.18.0
Add filename property to OutputMessageContentOutputTextAnnotationsF… by @qwertyquest in #696
filename property to OutputMessageContentOutputTextAnnotationsF… by @qwertyquest in #696Full Changelog: v0.17.0...v0.17.1
chore(OpenAI): deprecate Assistants API officially by @iBotPeaches in #679
Full Changelog: v0.16.1...v0.17.0
Handle optional attributes in CreateResponse by @louisbels in https://github.com/openai-php/client/pull/662
sequence_number support to OutputTextDelta. by @e4se in https://github.com/openai-php/client/pull/664Full Changelog: https://github.com/openai-php/client/compare/v0.16.0...v0.16.1
feat(OpenAI): GPT5 support by @iBotPeaches in https://github.com/openai-php/client/pull/639
OverrideStrategy enum for the fakeable trait to support merge/replace by @droath in https://github.com/openai-php/client/pull/646Full Changelog: https://github.com/openai-php/client/compare/v0.15.0...v0.16.0
fix(VLLM): streamed response tool call without arguments by @L3o-pold in https://github.com/openai-php/client/pull/623
Full Changelog: https://github.com/openai-php/client/compare/v0.14.0...v0.15.0
updateAttributes method to VectorStoresFiles (#626)Containers API (#636)model field to CreateResponse for embeddings (#634)docs(OpenAI): deprecate Assistants API by @iBotPeaches in https://github.com/openai-php/client/pull/607
Full Changelog: https://github.com/openai-php/client/compare/v0.13.0...v0.14.0
output_text to Responses API (#579)index to CreateStreamedResponseToolCall (#562)$parameters optional in thread create() method (#577)model.list endpoint (#599)reasoning_effort support to Assistants (#606)Response constructor (#615)Corrected readme for current PHP version requirement by @GrahamCampbell in https://github.com/openai-php/client/pull/575
Full Changelog: https://github.com/openai-php/client/compare/v0.12.0...v0.13.0
Correct GitHub Action deprecations + Opt into Dependabot by @iBotPeaches in https://github.com/openai-php/client/pull/544
Full Changelog: https://github.com/openai-php/client/compare/v0.10.3...v0.12.0
Correct GitHub Action deprecations + Opt into Dependabot by @iBotPeaches in https://github.com/openai-php/client/pull/544
Full Changelog: https://github.com/openai-php/client/compare/v0.10.3...v0.11.0
Hotfixing missing array keys by @pc-magas in https://github.com/openai-php/client/pull/496
cached_usage) to chat CreateResponseUsage by @IsraelOrtuno in https://github.com/openai-php/client/pull/494Full Changelog: https://github.com/openai-php/client/compare/v0.10.2...v0.10.3
cached_usage to CreateResponseUsage for Chat (#494)Added thread.run.incomplete into ThreadRunStreamResponse list of responses by @SovjakMartin in https://github.com/openai-php/client/pull/421
withProject method to set project for requests by @ManukMinasyan in https://github.com/openai-php/client/pull/377Full Changelog: https://github.com/openai-php/client/compare/v0.10.1...v0.10.2
thread.run.incomplete to ThreadRunStreamResponse (#421)withProject to configure the project for the client (#377)b64_json to support mocking (#462)Implement vector store endpoints and add assistants API v2 support by @gehrisandro in https://github.com/openai-php/client/pull/420
Full Changelog: https://github.com/openai-php/client/compare/v0.9.2...v0.10.1
Implement vector store endpoints and add assistants API v2 support by @gehrisandro and @knash94 in https://github.com/openai-php/client/pull/405
Full Changelog: https://github.com/openai-php/client/compare/v0.9.2...v0.10.0-beta.1
Add streamed response usage by @punyflash and @gehrisandro in https://github.com/openai-php/client/pull/398
Full Changelog: https://github.com/openai-php/client/compare/v0.9.1...v0.9.2
Add batches API endpoint by @gehrisandro and @The-LoneWolf in https://github.com/openai-php/client/pull/403
Full Changelog: https://github.com/openai-php/client/compare/v0.9.0...v0.9.1
Implement Assistants Streaming by @EthanBarlo and @gehrisandro in https://github.com/openai-php/client/pull/367
Full Changelog: https://github.com/openai-php/client/compare/v0.8.5...v0.9.0
Audio: add support for timestamp_granularities by @gehrisandro in https://github.com/openai-php/client/pull/374
Full Changelog: https://github.com/openai-php/client/compare/v0.8.4...v0.8.5
Fix default fake data for meta information by @gehrisandro in https://github.com/openai-php/client/pull/332
Full Changelog: https://github.com/openai-php/client/compare/v0.8.3...v0.8.4
ThreadRun: Add "usage" property to the response by @gehrisandro in https://github.com/openai-php/client/pull/330
Full Changelog: https://github.com/openai-php/client/compare/v0.8.2...v0.8.3
ThreadRunStep: "content" missing in response if result has not been submitted by @michgeek in https://github.com/openai-php/client/pull/319
Add stream support for Text To Speech by @gehrisandro in https://github.com/openai-php/client/pull/235
Add Assistants API support by @gehrisandro in https://github.com/openai-php/client/pull/271
Full Changelog: https://github.com/openai-php/client/compare/v0.7.10...v0.8.0
Remove list() from Threads resource
list() from Threads resourceFull Changelog: https://github.com/openai-php/client/compare/v0.8.0-beta.2...v0.8.0-beta.3
instruction on ThreadRunResponse may be nullable
Full Changelog: https://github.com/openai-php/client/compare/v0.8.0-beta.1...v0.8.0-beta.2
Add support for Assistants and Threads endpoint by @gehrisandro in https://github.com/openai-php/client/pull/243
The docs can be found in the 0.8.x branch README.md: https://github.com/openai-php/client/tree/0.8.x#table-of-contents
Full Changelog: https://github.com/openai-php/client/compare/v0.7.8...v0.8.0-beta.1
Add RetrieveJobResponseError and batch_size, learning_rate_multiplier parameters on RetrieveJobResponseHyperparameters for fine-tuning endpoint by @tr
Full Changelog: https://github.com/openai-php/client/compare/v0.7.9...v0.7.10
Add revised_prompt property to CreateResponseData on the image create endpoint by @gehrisandro in https://github.com/openai-php/client/pull/257
Full Changelog: https://github.com/openai-php/client/compare/v0.7.8...v0.7.9
Add support for GTP-4 vision on the chat completion endpoint by @gehrisandro in https://github.com/openai-php/client/pull/241
Full Changelog: https://github.com/openai-php/client/compare/v0.7.7...v0.7.8
Add support for tool calls on the chat completion endpoint by @gehrisandro in https://github.com/openai-php/client/pull/239
Full Changelog: https://github.com/openai-php/client/compare/v0.7.6...v0.7.7
Add support for the audio speech endpoint by @gehrisandro in https://github.com/openai-php/client/pull/237
Full Changelog: https://github.com/openai-php/client/compare/v0.7.5...v0.7.6
Update Models endpoint response object to the latest API changes by @gehrisandro in https://github.com/openai-php/client/pull/235
Fixed nEpochs on RetrieveJobResponseHyperparameters may be string
Full Changelog: https://github.com/openai-php/client/compare/v0.7.3...v0.7.4
Add "has_more" to fine-tuning jobs and events list responses
Fixed Meta Information for Azure - https://github.com/openai-php/client/issues/201
Full Changelog: https://github.com/openai-php/client/compare/v0.7.0...v0.7.2
Typo in class name MetaInformationOpenAI
Mark FineTunes resource as deprecated by @gehrisandro
FineTunes resource as deprecated by @gehrisandroEdits resource as deprecated by @gehrisandroFull Changelog: https://github.com/openai-php/client/compare/v0.6.4...v0.7.0
FineTunes resource as deprecatedEdits resource as deprecatedUpdate incorrect URL references, fixes openai-php/client#161 by @bobbrodie in https://github.com/openai-php/client/pull/162
Full Changelog: https://github.com/openai-php/client/compare/v0.6.3...v0.6.4
Update api reference links by @haydar in https://github.com/openai-php/client/pull/155
Full Changelog: https://github.com/openai-php/client/compare/v0.6.2...v0.6.3
Error handling: use error code as exception message if error message is empty
Chat/CreateResponse faking with function_call
Add support for function calling in the Chat Completions API
Exception handling for server error with non default content type header
Add support for psr/http-message ^2.0
fix: stream broken after checking for errors (regression of #113)
unify exception handling between HTTP client implementations
Trim ApiKey before sending it to the API
### Added - Stream support
Removed dependency for guzzlehttp/guzzle and use PSR-18 client discovery instead
guzzlehttp/guzzle and use PSR-18 client discovery instead (#75)status_details can be a string in file responses. Affects Files and FineTunes resources
status_details can be a string in file responses. Affects Files and FineTunes resources (#68)Audio resource to turn audio into text powered by whisper-1
Audio resource to turn audio into text powered by whisper-1 (#62)Chat resource aka ChatGPT powered by gpt-3.5-turbo
Chat resource aka ChatGPT powered by gpt-3.5-turbo (#60)Nullable finish_reason on Completions CreateResponse (#52, 545e0ab)
One column per quarter.