g4 / gateway
gateway php library
3.3.0
2025-09-26 09:26 UTC
Requires
- php: >=8.2
- ext-curl: *
- ext-json: *
- g4/constants: *
- g4/profiler: >=1.10.0
- g4/value-object: *
- laminas/laminas-http: *
Requires (Dev)
- phpunit/phpunit: 9.*
This package is auto-updated.
Last update: 2026-05-26 10:53:32 UTC
README
gateway - php library
Install
Via Composer
composer require g4/gateway
Usage
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();
Development
Install dependencies
$ make install
Run tests
$ make unit-tests
License
(The MIT License) see LICENSE file for details...