smalot/kong-api
Composer 安装命令:
composer require smalot/kong-api
包简介
PHP Wrapper for Kong API Gateway - Microservices Management Layer, delivering high performance and reliability.
README 文档
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);
统计信息
- 总下载量: 26.44k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-09-20