yuca / basic-api-client
PHP client for Basic API request
Installs: 284
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 1
pkg:composer/yuca/basic-api-client
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