anthropics/anthropic-sdk-php v0.5.0
anthropics/anthropic-sdk-php
Captured source
source ↗published Jan 30, 2026seen Jun 26captured 4whttp 200method plain
v0.5.0
Repository: anthropics/anthropic-sdk-php
Tag: v0.5.0
Published: 2026-01-30T19:18:24Z
Prerelease: no
Release notes:
0.5.0 (2026-01-30)
Full Changelog: v0.4.0...v0.5.0
⚠ BREAKING CHANGES
- replace special flag type
omittablewith justnull - use camel casing for all class properties
Features
- add
BaseResponseclass for accessing raw responses (b803fb8) - add idempotency header support (113b79f)
- add setters to constant parameters (a476273)
- allow both model class instances and arrays in setters (71aa7fc)
- api: add support for Structured Outputs in the Messages API (9fd43ce)
- api: migrate sending message format in output_config rather than output_format (d334157)
- better support for pagination mechanisms (829ee6e)
- improved phpstan type annotations (cc981bb)
- replace special flag type
omittablewith justnull(e1137de) - simplify and make the phpstan types more consistent (9f536fe)
- split out services into normal & raw types (5ba5dbf)
- support unwrapping envelopes (0ed53db)
- use camel casing for all class properties (90f0805)
Bug Fixes
- a number of serialization errors (e318451)
- correctly serialize dates (af8260d)
- support arrays in query param construction (779413f)
- typos in README.md (cb61dee)
Chores
- add git attributes and composer lock file (006c7c2)
- be more targeted in suppressing superfluous linter warnings (4b8cbf5)
- ci: Add Claude Code GitHub Workflow (#240) (4fd215b)
- ensure constant values are marked as optional in array types (66cf88c)
- formatting (5878c16)
- internal: add a basic client test (8835b21)
- internal: codegen related update (1c218af)
- internal: codegen related update (7240372)
- internal: codegen related update (9557a1c)
- internal: codegen related update (a8a13ec)
- internal: codegen related update (e2bebf6)
- internal: codegen related update (213c670)
- internal: codegen related update (2d460ff)
- internal: codegen related update (6087933)
- internal: codegen related update (3e5e21a)
- internal: codegen related update (ee26b2b)
- internal: codegen related update (b3411dd)
- internal: codegen related update (e98bd62)
- internal: codegen related update (94d88c4)
- internal: ignore stainless-internal artifacts (b144935)
- internal: improve pagination tests (94f8bc8)
- internal: minor test script reformatting (e27d068)
- internal: refactor auth by moving concern from base client...
Excerpt shown — open the source for the full document.