g4 / gateway
gateway php library
Installs: 61 237
Dependents: 2
Suggesters: 0
Security: 0
Stars: 1
Watchers: 12
Forks: 7
Open Issues: 0
Requires
- php: >=8.2
- ext-curl: *
- ext-json: *
- g4/constants: *
- g4/profiler: >=1.10.0
- g4/value-object: *
- laminas/laminas-http: 2.19.*
Requires (Dev)
- phpunit/phpunit: 9.*
- dev-master
- 3.2.0
- 3.1.1
- 3.1.0
- 3.0.0
- 2.3.0
- 2.2.1
- 2.2.0
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.0
- 1.6.4
- 1.6.3
- 1.6.2
- 1.6.1
- 1.6.0
- 1.5.0
- 1.4.1
- 1.4.0
- 1.3.0
- 1.2.7
- 1.2.6
- 1.2.5
- 1.2.4
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.0
- 0.x-dev
- 0.3.6
- 0.3.5
- 0.3.4
- 0.3.3
- 0.3.2
- 0.3.1
- 0.3.0
- 0.2.1
- 0.2.0
- 0.1.2
- 0.1.1
- 0.1.0
- dev-release-3.0.x
- dev-release-2.3.x
- dev-release-1.x
- dev-develop
This package is auto-updated.
Last update: 2024-12-20 11:02:11 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...