This package provides interfaces and abstract implementations to create an API client.
Install the package:
composer require digipolisgent/api-clientThe package supports PHP ^7.4 || ^8.0 and Guzzle ^6.5 || ^7.0 || ^8.0.
Guzzle 8 support allows consumers such as Drupal 12 to use Guzzle PSR-7 3.x.
See the examples of service packages how to use this package:
- gent/services/openinghours : Service to access the Opening Hours API and wrap the responses in value objects.
See Upgrading from v3 to v4.3 for configuration examples and migration steps. Existing v4 OIDC consumers can upgrade to v4.3 without configuration changes.
Please see CHANGELOG for more information what has changed recently.
Install the development dependencies on PHP 8.3, 8.4, or 8.5:
composer installRun the complete QA suite:
composer grumphpRun the PHPUnit suite:
composer phpunitQA PHP generates the schema-correct PHPUnit 11.5 or 12.5 configuration
automatically. The PHPUnit and coverage scripts run the QA PHP test suite, so
no project-level phpunit.xml file is needed. Coverage reports are written to
build/ when code coverage is available.
The MIT License (MIT). Please see License File for more information.