raidros / storer
A PHP storer for third api configurations
This package's canonical repository appears to be gone and the package has been frozen as a result.
1.0.5
2016-08-19 13:42 UTC
Requires
- php: ~5.5|~5.6|~7.0
- guzzlehttp/guzzle: ^6.2
- raidros/collection: 1.0.*
Requires (Dev)
- mockery/mockery: ^0.9.4
- phpunit/phpunit: ~4.0||~5.0
- scrutinizer/ocular: ~1.1
- squizlabs/php_codesniffer: ~2.3
This package is not auto-updated.
Last update: 2021-02-26 04:41:43 UTC
README
Install
Via Composer
$ composer require raidros/storer
Usage
// configure a third api $api = new Api('https://api.github.com', function ($api) { // add header $api->header('Application/Json', 'Accept'); // add endpoints $api->endpoint('get', '/search/repositories', 'end.point.name'); $api->endpoint('get', '/example/endpoint', 'example.endpoint'); }); // calling a endpoint $response = $api->execute('end.point.name', ['q' => 'raidros']);
Please see the Wiki for more information.
License
The MIT License (MIT). Please see License File for more information.