Download the PHP package grixu/api-client without Composer
On this page you can find all versions of the php package grixu/api-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download grixu/api-client
More information about grixu/api-client
Files in grixu/api-client
Package api-client
Short Description Simple API Client with OAuth2 Auth handler
License MIT
Homepage https://github.com/grixu/api-client
Informations about the package api-client
API Client
Simple API Client with OAuth2 Auth handler.
Installation
You can install the package via composer:
Usage for JSON API
Create configuration object
If you have various values of filter names, or extensive API to handle - consider creating Factory which will be
handling creating JsonApiConfig. Or keep them in separate config file.
Create fetcher
Here, you can adjust your query using UrlCompose by adding filters, sorts, includes:
Fetch Data
$parsedCollection is \Illuminate\Support\Collection filled with DTOs you
Configuration
You can adjust global configuration of APIClient in your .env file:
Testing
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Mateusz Gostański
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of api-client with dependencies
ext-json Version *
guzzlehttp/guzzle Version ^7.2
guzzlehttp/psr7 Version ^1.7 || ^2.0
illuminate/http Version ^8.0
illuminate/support Version ^8.0
spatie/laravel-enum Version ^2.2