Tags: chargebee/chargebee-php
Tags
feat: add PSR-18/PSR-17 HTTP client injection support (#127) * feat: add PSR-18/PSR-17 HTTP client injection support Allow injecting a PSR-18 ClientInterface directly into ChargebeeClient without implementing the Chargebee-specific HttpClientFactory interface. PSR-17 request/stream factories can optionally be provided; when omitted, php-http/discovery auto-discovers any installed implementation. New: src/HttpClient/PsrClientAdapter.php wraps a PSR-18 client and builds PSR-7 requests using injected or discovered PSR-17 factories. The existing HttpClientFactory injection path and the default GuzzleFactory are unchanged — fully backward compatible. New dependencies (require): - php-http/discovery ^1.0 - psr/http-factory ^1.0 Note: guzzlehttp/guzzle remains in require for v4.x compatibility. Removing it is deferred to the next major version. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * Version bump --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Releasing v4.15.1. (#122) * Releasing v4.15.1. * test: document expected encoding when JSON arrays should not use indexed params * fix: list fields to accept JSON objects with explicit numeric keys for JsonParamEncoder * test: full test suits for JsonParamEncoder * Minor refactor in CHANGELOG
PreviousNext