2017 © Pedro Peláez
 

library php-easy-client

DominikAngerer - Client to easily fetch and cache data

image

dominikangerer/php-easy-client

DominikAngerer - Client to easily fetch and cache data

  • Wednesday, February 15, 2017
  • by dominikangerer
  • Repository
  • 1 Watchers
  • 0 Stars
  • 72 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

php-easy-client

Allow GET and POST Request from Guzzle combined with the caching from APIX, (*1)

Install

composer require dominikangerer/php-easy-client

How to use

// initialize with domain
$client = new \DominikAngerer\Client('https://raw.githubusercontent.com');

// Optionally set a cache
$client->setCache('filesytem', array('path' => 'cache'));

// execute a get Request and get the Body
$client->get('/DominikAngerer/default-datasources/master/country-iso2.json', array('time' => time()));
$data = $client->getBody();

// access the headers
$headers = $client->getHeaders();

The Versions

15/02 2017

dev-master

9999999-dev

DominikAngerer - Client to easily fetch and cache data

  Sources   Download

MIT

The Requires

 

by Dominik Angerer

cache http client

15/02 2017

v1.0.3

1.0.3.0

DominikAngerer - Client to easily fetch and cache data

  Sources   Download

MIT

The Requires

 

by Dominik Angerer

cache http client

15/02 2017

v1.0.2

1.0.2.0

DominikAngerer - Client to easily fetch and cache data

  Sources   Download

MIT

The Requires

 

by Dominik Angerer

cache http client

15/02 2017

v1.0.1

1.0.1.0

DominikAngerer - Client to easily fetch and cache data

  Sources   Download

MIT

The Requires

 

by Dominik Angerer

cache http client

14/02 2017

v1.0.0

1.0.0.0

DominikAngerer - Client to easily fetch and cache data

  Sources   Download

MIT

The Requires

 

by Dominik Angerer

cache http client