raidros/storer

为第三方API配置的PHP存储器

该软件包的官方仓库似乎已消失,因此该软件包已被冻结。

1.0.5 2016-08-19 13:42 UTC

This package is not auto-updated.

Last update: 2021-02-26 04:41:43 UTC


README

Latest Version on Packagist Software License Build Status StyleCI Coverage Status Quality Score Total Downloads

安装

通过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)。请参阅许可证文件以获取更多信息。