Via Composer
$ composer require imjonos/laravel-json-api-client
$resources = JsonApiClient::resources('/api/v1/users');
OR
$client = new Client($apiUrl, $clientId, $clientSecret);
$resources = new Resources($client, '/api/v1/users');
$resources->chunk(100, function($resources, $pageNumber, $total){
foreach ($resources AS $resource){
...
}
});
$companyResource = new Resource($client, '/api/v1/companies/',
[
'data' => [
'id' => '1',
'type' => 'companies'
]
]);
$companyResource->get();
[
'code' => 200,
'body' => []
'headers' => []
]
Please see the changelog for more information on what has changed recently.
$ composer test
Please see contributing.md for details and a todolist.
If you discover any security related issues, please email author email instead of using the issue tracker.
- Eugeny Nosenko
license. Please see the license file for more information.