The Symfony integration for enm/json-api-client.
composer require enm/json-api-client-bundleIt's recommended to install kriswallsmith/buzz as http-client and nyholm/psr7 for http factories.
composer require kriswallsmith/buzz nyholm/psr7You can also use any HTTP client which implements PSR-18.
<?php
// config/bundles.php
return [
// ...
Enm\Bundle\JsonApi\Client\EnmJsonApiClientBundle::class =>['all'=>true],
// ...
];enm_json_api_client:
clients: # requires at least one element, the key will be your client name
api: 'http://example.com/api'The bundle offers a private service (only used for dependency injection, not for direct calls via service container) for
each configured client. The service name will be enm.json_api_client.YOUR_CLIENT_NAME.