PackageTrack
Sign in Get early access

openai-php/client

OpenAI PHP is a supercharged PHP API client that allows you to interact with the Open AI API

v0.20.1 31M downloads/mo #458 most downloaded on Packagist openai-php/client

What this package is like to depend on

Last release 1 months ago

20 Jul 2026

Ships fairly regularly

a new release about every 5 weeks

Nearly every release is documented

notes for 58 of 59 stable releases

Nothing withdrawn

no release was ever pulled

4 years old

63 releases · first in 2022

9 releases in the last 12 months

see the full history below

Release timeline

62 releases · Oct 2022 to Jul 2026
2023 2024 2025 2026
Release Pre-release

Releases

latest 60 of 63
  1. v0.20.1 20 Jul 2026
    Release notes

    What's Changed

    • build(deps): bump shivammathur/setup-php from 2.37.1 to 2.37.2 by @dependabot[bot] in #782
    • docs: fix typo in README.md (reponse -> response) by @lingxiaoyiyu-hub in #783
    • build(deps): bump actions/checkout from 6.0.3 to 7.0.0 by @dependabot[bot] in #784
    • build(deps): bump actions/cache from 5.0.5 to 6.1.0 by @dependabot[bot] in #785
    • fix(OpenAI): Support streaming 'compaction' output by @e4se in #787
    • fix(OpenAI): default missing optional keys to null in from() by @lazerg in #786
    • fix(OpenAI): Preserve function call namespaces by @e4se in #788
    • fix(OpenAI): Support 'tool_search' output by @e4se in #789
    • release: v0.20.1 by @iBotPeaches in #791

    New Contributors

    Full Changelog: v0.20.0...v0.20.1

    Open source →
  2. v0.20.0 13 Jun 2026
    Release notes

    What's Changed

    New Contributors

    Full Changelog: v0.19.2...v0.20.0

    Open source →
  3. v0.19.2 19 Apr 2026
    Release notes

    What's Changed

    New Contributors

    Full Changelog: v0.19.1...v0.19.2

    Open source →
  4. v0.19.1 17 Mar 2026
    Release notes

    What's Changed

    New Contributors

    Full Changelog: v0.19.0...v0.19.1

    Open source →
  5. v0.19.0 10 Feb 2026
    Release notes

    What's Changed

    New Contributors

    Full Changelog: v0.18.0...v0.19.0

    Open source →
  6. v0.18.0 31 Oct 2025
    Release notes

    What's Changed

    New Contributors

    Full Changelog: v0.17.1...v0.18.0

    Open source →
  7. v0.17.1 09 Oct 2025
    Release notes

    What's Changed

    New Contributors

    Full Changelog: v0.17.0...v0.17.1

    Open source →
  8. v0.17.0 02 Oct 2025
    Release notes

    What's Changed

    New Contributors

    Full Changelog: v0.16.1...v0.17.0

    Open source →
  9. v0.16.1 04 Sep 2025
    Release notes

    What's Changed

    New Contributors

    Full Changelog: v0.16.0...v0.16.1

    Open source →
  10. v0.16.0 26 Aug 2025
    Release notes

    What's Changed

    New Contributors

    Full Changelog: v0.15.0...v0.16.0

    Open source →
  11. v0.15.0 04 Aug 2025
    Release notes

    Added

    • Add updateAttributes method to VectorStoresFiles (#626)
    • Add support for chat completion audio modality (#629)
    • Add Containers API (#636)
    • Add model field to CreateResponse for embeddings (#634)

    Fixed

    • Fix streamed response tool call without arguments in VLLM (#623)
    • Fix support for code_interpreter_call on retrieve response (#632)
    • Fix JSON encoding to preserve UTF-8 characters using JSON_UNESCAPED_UNICODE (#628)
    Open source →
  12. v0.14.0 24 Jun 2025
    Release notes

    Added

    • Add helper method output_text to Responses API (#579)
    • Add support for response cancel in Responses API (#588)
    • Add support for Image Generation Tool to Responses API (#594)
    • Add streaming for Image Generation in Responses API (#602)
    • Add support for Code Interpreter to Responses API (#610)
    • Add support for Remote MCP Tool in Responses API (#601)
    • Add realtime ephemeral tokens (#591)
    • Add streaming support for Audio transcriptions (#603)
    • Add realtime key documentation (#597)

    Fixed

    • Add missing index to CreateStreamedResponseToolCall (#562)
    • Make $parameters optional in thread create() method (#577)
    • Support Azure model.list endpoint (#599)
    • Add reasoning_effort support to Assistants (#606)
    • Use proper parameter order in Response constructor (#615)
    • Support reused prompts/instructions in Responses API (#616)

    Changed

    • Use proper header notation for Responses API docs (#596)
    • Collapse legacy/deprecated sections by default in docs (#609)

    Deprecated

    • mark Assistants API as deprecated (#607)
    • mark Completions API as legacy (#608)
    Open source →
  13. v0.13.0 14 May 2025
    Release notes

    Added

    • Add support for Responses API (#541)

    Fixed

    • Add Throwable type support to ClientFake responses (#576)
    Open source →
  14. v0.12.0 04 May 2025
    Release notes

    Changed

    • Removed PHP 8.1 support
    Open source →
  15. v0.11.0 no date
    Release notes

    Added

    • Add logprobs to Chat Response (#533)
    • Add ResponseHasMetaInformationContract contract to ThreadRunStepResponse (#523)
    • Add support for 'attributes' on vector store files (#551)
    • Add OpenAI compatibility support for Google Gemini (#502)
    • Add compatibility for Aliyun LLM APIs (#530)
    • Add ability to pass arguments to files list request (#557)
    • Add search vector store functionality (#559)
    • Add Image Response usage (#571)
    • Add category applied input types to moderation response (#572)
    • Add support for annotations in Chat response (Web Search) (#564)
    • Add test coverage for assistants streaming and related functionality (#444)

    Changed

    • Update GitHub Action deprecations & opt into Dependabot (#544)
    • Draw attention away from deprecated completions endpoints in docs (#548)

    Fixed

    • Fix type definition for responses in ClientFake::addResponses method (#382)
    • Fix Content retrieval in HttpTransport with custom HttpClient (#343)
    • Fix correct completion endpoint when logprobs missing (#550)
    • Fix chat completion choices to allow responses without logprobs field (#554)
    • Fix support for streaming of non-OpenAI models that return "ping" (#556)
    • Fix OpenRouter token usage response (#560)
    • Fix Gemini list models (#567)
    Open source →
  16. v0.10.3 12 Nov 2024
    Release notes

    Added

    • Add http status to ErrorException (#487)
    • Add cached_usage to CreateResponseUsage for Chat (#494)
    • Add moderation categories (Illicit*) (#495)

    Fixed

    • Fix missing parameters on FineTuning RetrieveJobResponse (#496)
    • Fix nullable description on Assistants Tool Function (#484)
    • Fix attachment key missing on ThreadMessageResponse (#471)
    Open source →
  17. v0.10.2 17 Oct 2024
    Release notes

    Added

    • Add thread.run.incomplete to ThreadRunStreamResponse (#421)
    • Add withProject to configure the project for the client (#377)
    • Add fake b64_json to support mocking (#462)

    Fixed

    • Fix image url content type to use url instead of file_id (#422)
    • Fix type error on VectorStoresFilesTestResources (#460)
    • Fix vector store cancel method (#435)
    Open source →
  18. v0.10.1 06 Jun 2024
    Release notes

    Added

    • Add support for Assistants API v2 and Vector Stores endpoints (#420)

    Docs

    • Add vector store endpoints documentation (#420)
    Open source →
  19. v0.10.0-beta.1 27 May 2024 pre-release
    Release notes

    Added

    • Add support for Assistants API v2 and Vector Stores endpoint (#405)
    Open source →
  20. v0.9.2 27 May 2024
    Release notes

    Added

    • Support for usage stream option on chat endpoint (#398)

    Fixed

    • Missing output parameter on streamed code interpreter output (#406)
    Open source →
  21. v0.9.1 24 May 2024
    Release notes

    Added

    • Add support for Batches endpoint (#403)
    Open source →
  22. v0.9.0 21 May 2024
    Release notes

    Added

    • Assistants: add streaming support (#367)
    Open source →
  23. v0.8.5 15 Apr 2024
    Release notes

    Added

    • Audio: add support for timestamp_granularities (#374)
    Open source →
  24. v0.8.4 07 Feb 2024
    Release notes

    Fixed

    • Fix default fake data for meta information (#332)
    Open source →
  25. v0.8.3 02 Feb 2024
    Release notes

    Added

    • ThreadRun: Add "usage" property to the response (#330)
    Open source →
  26. v0.8.2 26 Jan 2024
    Release notes

    Fixed

    • ThreadRunStep: "content" missing in response if result has not been submitted (#319)
    • Files: "bytes" in retrieve response is may null (#325)
    Open source →
  27. v0.8.1 22 Dec 2023
    Release notes

    Added

    • Add support for Assistants and Threads endpoint (#271)
    • Add stream support for Text To Speech (#235)
    • Add test resources for Assistants and Threads (#279)

    Changed

    • Remove thread messages delete endpoint (#309)

    Fixed

    • Handle x-request-id in meta information (#283)
    • Handle meta information from azure headers (#307)
    • Add missing default system_fingerprint to chat create response fixture (#308)
    • Convert headers to lower case before creation meta information (#306)

    Docs

    • Remove threads list endpoint from README.md (#275)
    • Clarify assistants files docs (#278)
    • Fix image creation example (#297)
    • Fix outdated links (#299)
    • Add troubleshooting section and explain how to configure HTTP client timeouts
    Open source →
  28. v0.8.0 23 Nov 2023
    Release notes

    Added

    • Add support for Assistants and Threads endpoint (#271)
    Open source →
  29. v0.8.0-beta.3 23 Nov 2023 pre-release
    Release notes

    Removed

    • Remove list() from Threads resource
    Open source →
  30. v0.8.0-beta.2 14 Nov 2023 pre-release
    Release notes

    Fixed

    • instruction on ThreadRunResponse may be nullable
    Open source →
  31. v0.8.0-beta.1 13 Nov 2023 pre-release
    Release notes

    Added

    • Add support for Assistants and Threads endpoint (#243)
    Open source →
  32. v0.7.10 14 Nov 2023
    Release notes

    Added

    • Add RetrieveJobResponseError and batch_size, learning_rate_multiplier parameters on RetrieveJobResponseHyperparameters for fine-tuning endpoint (#255)
    Open source →
  33. v0.7.9 14 Nov 2023
    Release notes

    Added

    • Add revised_prompt property to CreateResponseData on the image create endpoint (#257)

    Docs

    • Fix model in one of the examples
    Open source →
  34. v0.7.8 07 Nov 2023
    Release notes

    Added

    • Add support for GTP-4 vision on the chat completion endpoint (#241)
    Open source →
  35. v0.7.7 07 Nov 2023
    Release notes

    Added

    • Add support for tool calls on the chat completion endpoint (#239)
    Open source →
  36. v0.7.6 06 Nov 2023
    Release notes

    Added

    • Add support for the audio speech endpoint (#237)
    Open source →
  37. v0.7.5 06 Nov 2023
    Release notes

    Changed

    • Update Models endpoint response object to the latest API changes (#235)

    Docs

    • Update FineTuning job id names (#230)
    • Use Chat resource as the primary example
    Open source →
  38. v0.7.4 21 Oct 2023
    Release notes

    Fixed

    • nEpochs on RetrieveJobResponseHyperparameters may be string
    • processingMs ond MetaInformationOpenAI may be null (#218)
    Open source →
  39. v0.7.3 08 Sep 2023
    Release notes

    Added

    • Add "has_more" to fine-tuning jobs and events list responses (#206)

    Changed

    • Add parameters to the fine-tuning jobs list request to filter the results (#206)

    Fixed

    • error_code may be int
    Open source →
  40. v0.7.2 31 Aug 2023
    Release notes

    Fixed

    • Missing openai-version header from Azure
    Open source →
  41. v0.7.1 29 Aug 2023
    Release notes

    Fixed

    • Typo in class name MetaInformationOpenAI
    Open source →
  42. v0.7.0 29 Aug 2023
    Release notes

    Added

    • Add support for the fine-tuning API (#199)
    • Provide access to header / meta information for all responses (#195)

    Changed

    • Mark FineTunes resource as deprecated
    • Mark Edits resource as deprecated
    • Add missing moderation enums (#178)

    Fixed

    • Chat completion create response with function calling on Azure (#184)
    • Breaking change on OpenAI API regarding "transient" field in Audio translations (#168)
    • Docs: fix OpenAI URL
    Open source →
  43. v0.6.4 18 Jul 2023

    Nothing published for this version

  44. v0.6.3 07 Jul 2023
    Release notes

    Fixed

    • Breaking change on OpenAI API regarding "transient" field in Audio (#160)
    Open source →
  45. v0.6.2 23 Jun 2023
    Release notes

    Changed

    • Error handling: use error code as exception message if error message is empty (#150)

    Fixed

    • Error handling: Catch error in stream responses (#150)
    • Error handling: Handle errors where message is an array (#150)
    Open source →
  46. v0.6.1 15 Jun 2023
    Release notes

    Fixed

    • Chat/CreateResponse faking with function_call (#145)
    Open source →
  47. v0.6.0 14 Jun 2023
    Release notes

    Added

    • Add support for function calling in the Chat Completions API (#144)
    Open source →
  48. v0.5.3 07 Jun 2023
    Release notes

    Fixed

    • Exception handling for server error with non default content type header (#134)
    • Faking embedding responses for multidimensional vectors (#131)
    Open source →
  49. v0.5.2 27 May 2023
    Release notes

    Added

    • Add support for psr/http-message ^2.0 (#130)
    Open source →
  50. v0.5.1 24 May 2023
    Release notes

    Fixed

    • fix: stream broken after checking for errors (regression of #113)
    Open source →
  51. v0.5.0 24 May 2023
    Release notes

    Added

    • Support for HTTP base uri (#106)

    Changed

    • unify exception handling between HTTP client implementations (#113)

    Fixed

    • fix toArray() on CreateStreamedResponseDelta to match the original API response (#108)

    Docs

    • explain usage for "OpenAI on Azure" (#109)
    Open source →
  52. v0.4.2 12 Apr 2023
    Release notes

    Added

    • Testing support (#71)

    Changed

    • Trim ApiKey before sending it to the API (#101)

    Fixed

    • Nullable fields on error response (#102)
    Open source →
  53. v0.4.1 24 Mar 2023
    Release notes

    Added

    • Stream support (#84)
    Open source →
  54. v0.4.0 17 Mar 2023
    Release notes

    Changed

    • Removed dependency for guzzlehttp/guzzle and use PSR-18 client discovery instead (#75)
    • Add Client factory which allows for a custom HTTP client
    • Client factory further accepts custom HTTP headers, query parameters and API URI
    Open source →
  55. v0.3.5 08 Mar 2023
    Release notes

    Fixed

    • status_details can be a string in file responses. Affects Files and FineTunes resources (#68)
    Open source →
  56. v0.3.4 03 Mar 2023
    Release notes

    Added

    • Audio resource to turn audio into text powered by whisper-1 (#62)
    Open source →
  57. v0.3.3 02 Mar 2023
    Release notes

    Added

    • Chat resource aka ChatGPT powered by gpt-3.5-turbo (#60)
    Open source →
  58. v0.3.2 28 Feb 2023
    Release notes

    Fixed

    • Nullable finish_reason on Completions CreateResponse (#52, 545e0ab)
    Open source →
  59. v0.3.1 07 Feb 2023
    Release notes

    Fixed

    • Missing events on FineTunes RetrieveResponse (#41)
    Open source →
  60. v0.3.0 03 Jan 2023
    Release notes

    Changed

    • OpenAI::client() first argument changed from apiToken to apiKey (#25)

    Fixed

    • Getting contents from Guzzle's response causing issues with middleware (#33)
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive