Download Latest Version 6.3.1 source code.zip (41.7 kB)
Home / 6.3.0
Name Modified Size InfoDownloads / Week
Parent folder
6.3.0 source code.tar.gz 2026-10-11 35.9 kB
6.3.0 source code.zip 2026-10-11 41.1 kB
README.md 2026-10-11 1.1 kB
Totals: 3 Items   78.0 kB 3

What's Changed

  • Response Object: Added getLastResponse() returning a Response object with ->status(), ->ok(), ->headers(), ->header($name), ->body(), and ->json() for easy inspection without manual json_decode().
  • Exception Handling: Added setThrowOnError(true) and OpenAiException for throwing on HTTP 4xx/5xx responses with status code, error type, and error code.
  • Automatic Retries: Added setRetries(maxRetries, baseDelayMs) with exponential backoff, jitter, and Retry-After header support for rate limits (429) and transient server errors (5xx on idempotent methods).
  • Static Analysis & Types: Added PHPStan (level 5) and typed PHPDoc shape annotations on core methods while strictly preserving PHP 7.4+ compatibility with zero runtime dependencies.
  • Decisions Usage: Added getDecisionsUsage() reporting endpoint.
  • Pure Tests: Removed mock echo-server tests in favor of pure in-memory unit tests and real API tests.

Full Changelog: https://github.com/orhanerday/open-ai/compare/6.2.0...6.3.0

Source: README.md, updated 2026-10-11