Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dominikangerer/php-easy-client
Allow GET and POST Request from Guzzle combined with the caching from APIX
https://github.com/dominikangerer/php-easy-client
apix client get guzzle php post request
Last synced: about 2 months ago
JSON representation
Allow GET and POST Request from Guzzle combined with the caching from APIX
- Host: GitHub
- URL: https://github.com/dominikangerer/php-easy-client
- Owner: DominikAngerer
- Created: 2017-02-14T15:58:40.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-15T10:21:14.000Z (almost 8 years ago)
- Last Synced: 2024-07-30T18:57:26.194Z (5 months ago)
- Topics: apix, client, get, guzzle, php, post, request
- Language: PHP
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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();
```