Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eosnewmedia/json-api-client-bundle
Symfony integration for enm/json-api-client
https://github.com/eosnewmedia/json-api-client-bundle
api api-client client json-api symfony symfony-bundle
Last synced: about 2 months ago
JSON representation
Symfony integration for enm/json-api-client
- Host: GitHub
- URL: https://github.com/eosnewmedia/json-api-client-bundle
- Owner: eosnewmedia
- License: mit
- Created: 2017-06-08T12:08:37.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-02-01T18:56:21.000Z (almost 2 years ago)
- Last Synced: 2024-04-27T06:21:39.689Z (8 months ago)
- Topics: api, api-client, client, json-api, symfony, symfony-bundle
- Language: PHP
- Homepage: https://eosnewmedia.github.io/JSON-API-Client-Bundle/
- Size: 63.5 KB
- Stars: 0
- Watchers: 6
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
JSON API Client Bundle
======================The Symfony integration for [enm/json-api-client](https://eosnewmedia.github.io/JSON-API-Client/).
1. [Installation](#installation)
1. [Configuration](#configuration)
1. [Usage](#usage)## Installation
```bash
composer require enm/json-api-client-bundle
```It's recommended to install `kriswallsmith/buzz` as http-client and `nyholm/psr7` for http factories.
```sh
composer require kriswallsmith/buzz nyholm/psr7
```You can also use any HTTP client which implements [PSR-18](https://www.php-fig.org/psr/psr-18/).
## Configuration
```php
['all'=>true],
// ...
];
``````yaml
enm_json_api_client:
clients: # requires at least one element, the key will be your client name
api: 'http://example.com/api'
```## Usage
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`.