Skip to content

YucaApp/basic-api-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic API Client

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages