codeages / rest-api-client
A PHP REST API Client.
Installs: 7 275
Dependents: 1
Suggesters: 0
Security: 0
Stars: 3
Watchers: 5
Forks: 2
Open Issues: 0
Requires
- php: >=5.3.3
- psr/log: ^1.0
Requires (Dev)
- phpunit/phpunit: ~4.0
README
Install
composer require codeages/rest-api-client
Useage
use Codeages\RestApiClient\RestApiClient; use Codeages\RestApiClient\Specification\JsonHmacSpecification; $config = array( 'accessKey' => 'testkey', 'secretKey' => 'secretKey', 'endpoint' => 'http://domain.tld/api/v1/', ); $spec = new JsonHmacSpecification('sha1'); $client = new RestApiClient($config, $spec); $result = $client->get('/');