Releases: programmatordev/php-api-sdk
Releases · programmatordev/php-api-sdk
Release list
v3.0.0
PHP API SDK 3.0
Version 3.0 is a full architecture refresh focused on making API SDK authoring more fluent, compact, and flexible.
This release is not a mechanical upgrade from 2.x. Most SDKs should be reshaped around the new authoring model instead of replacing old calls one by one. See UPGRADE-3.0.md for the high-level changes.
What Changed
- SDK authoring now centers on
Api,Resource,Endpoint,Response,EntityInterface, andEnvelopeInterface. - Resource methods now build requests through
endpoint(). - Response mapping now uses
entity(),collection(), andenvelope(). - Response decoding now lives under
responses(). - Error handling now lives under
errors(). - SDK-user customization now goes through
setup(). send()remains public as an escape hatch for unmodeled endpoints.- PSR-18, PSR-17, PSR-6, PSR-3, HTTPlug authentication, plugins, hooks, defaults, and response/error behavior remain part of the package through the new architecture.
- Endpoint-specific cache defaults and resource-level cache overrides are now supported.
- Default cache TTL is now 3600 seconds.
Upgrade Notes
This is a major release with breaking API changes. Review:
before updating an existing SDK.
v2.1.1
What's Changed
- Remove unused PluginException by @andrepimpao in #17
- Allow Symfony 8 by @andrepimpao in #18
Full Changelog: v2.1.0...v2.1.1
v2.1.0
What's Changed
- Fix multiple requests simultaneously by @andrepimpao in #15
Full Changelog: v2.0.0...v2.1.0
v2.0.0
What's Changed
- Symfony 7 support by @andrepimpao in #10
- Optional setBaseUrl by @andrepimpao in #11
- Remove OptionsResolver by @andrepimpao in #12
- Improve URL build by @andrepimpao in #13
Breaking Changes
- The
OptionsResolverwas removed and is no longer instantiated by default. You can easily add it to your project though: https://symfony.com/doc/current/components/options_resolver.html. - In the
requestmethod, the argument$uriwas renamed to$url. This is only relevant if you were using named parameters.
Full Changelog: v1.0.1...v2.0.0
v1.0.1
What's Changed
- Improve plugin system example and misc by @andrepimpao in #7
Full Changelog: v1.0.0...v1.0.1
v1.0.0
v0.3.0
v0.2.0
What's Changed
- Fix README badges links by @andrepimpao in #2
- Make methods public by @andrepimpao in #3
Full Changelog: v0.1.0...v0.2.0