yuca / basic-api-client
This package is abandoned and no longer maintained.
The author suggests using the guzzlehttp/guzzle package instead.
PHP client for Basic API request
v0.1.1
2018-08-09 03:35 UTC
Requires
- php: >=5.6
Requires (Dev)
- phpunit/phpunit: ^5.0
This package is auto-updated.
Last update: 2019-09-04 02:47:57 UTC
README
A simple PHP client to make an API request based on HTTP Basic Authentication.
Instalation
composer require yuca/basic-api-client
Usage
$client = new Yuca\BasicApiClient([ 'baseUrl' => 'https://example.com/api', 'username' => 'username', 'password' => 'password', 'return' => 'array', // object or array ]); $client->get('articles', ['limit' => 10]); $client->post('article/create', ['title' => 'Awesome!']);
License
MIT