digipolisgent / api-client
This package provides interfaces and abstract implementations to create an API client.
Requires
- php: ^7.4 || ^8.0
- ext-json: *
- guzzlehttp/guzzle: ^6.5 || ^7.0 || ^8.0
- jumbojett/openid-connect-php: ^1
- psr/http-message: ^1.0 || ^2.0
- psr/simple-cache: ^1.0 || ^2.0 || ^3.0
Requires (Dev)
- district09/qa-php: ^3.1
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-09-18 07:23:11 UTC
README
This package provides interfaces and abstract implementations to create an API client.
Install
Install the package:
composer require digipolisgent/api-client
Requirements
The 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.
Usage
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.
Change log
Please see CHANGELOG for more information what has changed recently.
Testing
Install the development dependencies on PHP 8.3, 8.4, or 8.5:
composer install
Run the complete QA suite:
composer grumphp
Run the PHPUnit suite:
composer phpunit
QA 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.
License
The MIT License (MIT). Please see License File for more information.