lianglong / kong-api-for-hyperf
kong gateway admin api for hyperf
dev-master
2022-02-24 09:25 UTC
Requires
- php: >=7.3
- hyperf/guzzle: ^2.2
- hyperf/utils: ^2.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- mockery/mockery: ^1.0
- phpstan/phpstan: ^1.0
- phpunit/phpunit: >=7.0
- swoole/ide-helper: ^4.5
Suggests
- swow/swow: Required to create swow components.
This package is auto-updated.
Last update: 2025-03-24 18:23:41 UTC
README
Kong API Gateway for Hyperf - Microservices Management Layer, delivering high performance and reliability.
Compatibility
Currently supported Kong version: 2.x
.
Supported services:
- Service
- Route
- Certificate
- Consumer
- Plugin
- Sni
- Target
- Upstream
Requires:
- hyperf/guzzle
- hyperf/utils
Install
This library can be installed with composer:
composer require lianglong/kong-api-for-hyperf
Usage
$factory = new \lianglong\Kong\ServiceFactory(['base_uri'=>'http://127.0.0.1:8001']); /** @var \lianglong\Kong\Services\Services $service */ $service = $factory->get('services'); $response = $service->create( [ 'name' => $name, ] ); $ret = $response->json(); var_dump($ret);