All Notable changes to digipolisgent/api-client package.
- Added API key authentication using the
apiKeyandapplicationIdheaders. - Added
ApiKeyConfigurationandLegacyConfiguration, with a sharedClientConfigurationInterfacefor endpoint, version, and timeout settings. - Added a v3 to v4.3 upgrade guide and offline authentication compatibility tests.
- Made the client token cache optional for API key and legacy configurations; OIDC still requires it. Existing OIDC configuration signatures, interface methods, protected property types, and token-provider behavior are preserved.
- Added Guzzle 8 support, allowing consumers such as Drupal 12 to resolve Guzzle PSR-7 3.x while retaining Guzzle 6 and 7 compatibility.
- Added PHP 8.5 to the continuous-integration matrix.
- Updated development tooling to QA PHP 3.1, including shared PHPUnit 11/12 configuration generation.
- Updated the README requirements, testing guidance, and continuous-integration badge.
- Removed the project-specific PHPUnit XML configuration, now provided by QA PHP.
- Update qa-php to 2.x.
- Update psr/http-message to 1.x or 2.x.
- Update psr/simple-cache to 1.x or 2.x or 3.x.
Use version 4 of this module to switch over to OAuth authentication. Key/secret authentication is dropped from the client. The client and configuration objects have changed parameters.
- ZALENZOEK-689: Add OAuth2 API authentication.
- Fix minimal supported Guzzle version: Drupal recommended still uses Guzzle 6.
- Add PHP8.1 support.
- Bumped minimum PHP version to 7.4.
- Bumped minimal Guzzle version to 7.x.
- Update qa-php package to 1.x.
- Add
district09/qa-phpto instal QA tools. - Add also support for Guzzle 7.x.
- Added AbstractXmlRequest class.
- Made the code strict.
- Renamed the AbstractRequest class to AbstractJsonRequest.
- The client in ServiceAbstract is now only accessible in extending classes trough protected method ServiceAbstract::client().
- Removed chaining ClientInterface::addHandler() method calls.
- Added code style checks.
- Allow setting a TTL for cache entries.
- AccepType enum
- MethodType enum
- Uri component
- AbstractRequest
- Allow handlers to support multiple request types
- Code of Conduct
- Security guidelines
- Make the request, not the client, responsible for Accept and Content-Type headers
Initial release of the digipolisgent/api-client package.
This includes:
- PSR-7 client implementation.
- Interfaces to use caching in client packages.
- Interfaces to use logging in client packages.
- Interfaces to create services in client packages.