Skip to content

Allow GET and POST Request from Guzzle combined with the caching from APIX

Notifications You must be signed in to change notification settings

DominikAngerer/php-easy-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-easy-client

Allow GET and POST Request from Guzzle combined with the caching from APIX

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();

About

Allow GET and POST Request from Guzzle combined with the caching from APIX

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages