raidros / storer
为第三方API配置的PHP存储器
该软件包的官方仓库似乎已消失,因此该软件包已被冻结。
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
安装
通过Composer
$ composer require raidros/storer
使用
// 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']);
请参阅Wiki以获取更多信息。
许可证
MIT许可证(MIT)。请参阅许可证文件以获取更多信息。