dasbit / apiclient
Simple api client wrapper without throwing exceptions with statuscodes
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/dasbit/apiclient
Requires
- php: >=7.4
- ext-json: *
- guzzlehttp/guzzle: ^7.0
Requires (Dev)
- phpunit/phpunit: >=8.0
- squizlabs/php_codesniffer: ^3.0
This package is auto-updated.
Last update: 2025-10-15 02:40:23 UTC
README
Simple api client wrapper without throwing exceptions with statuscodes
Install
Via Composer
$ composer require dasbit/apiclient
Usage
$api = new dasbit\apiclient(new Guzzle, 'https://example-host.com/api'); $api->authenticate('login', 'password'); $response = $api->request('/entity-list'); $code = $response['code']; $responseBody = $response['body']; // assoc array of decoded json string
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email abylhasov@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.