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

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

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.