gateway - php library
Via Composer
composer require g4/gateway
use G4\Gateway\Options;
use G4\Gateway\Http;
$options = new Options();
$options
->addHeader('Accept', 'application/json') // optional
->setTimeout(30) // optional
->setSslVerifyPeer(true); // optional
$http = new Http('http://api.url', $options)
$http
->setServiceName('maps'); // optional
$response = $http->get(['id' => 123]); // post(), put(), delete()
echo $response->getCode();
echo $response->getBody();
$ make install
$ make unit-tests
(The MIT License) see LICENSE file for details...