smalot / kong-api
PHP Wrapper for Kong API Gateway - Microservices Management Layer, delivering high performance and reliability.
Installs: 26 442
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 4
Forks: 4
Open Issues: 3
Requires
- php: >=5.5
- guzzlehttp/guzzle: ^6.2
- psr/log: ~1.0
Requires (Dev)
- atoum/atoum: ~3.0
This package is not auto-updated.
Last update: 2024-12-18 03:48:31 UTC
README
PHP Wrapper for Kong API Gateway - Microservices Management Layer, delivering high performance and reliability.
Compatibility
Currently supported Kong version: 0.11
.
Supported services:
- Api
- Certificate
- Consumer
- Plugin
- Sni
- Target
- Upstream
Requires at least PHP 5.6.
Install
This library can be installed with composer:
composer require smalot/kong-api
Usage
$factory = new \Smalot\Kong\ServiceFactory(); /** @var \Smalot\Kong\Services\Api $service */ $service = $factory->get('api'); $response = $service->create( [ 'name' => $name, 'uris' => '/ping', 'upstream_url' => 'http://ping/', ] ); $api = $response->json(); var_dump($api);