therealgambo/kong-php
Composer 安装命令:
composer require therealgambo/kong-php
包简介
A PHP7 compliant library for interacting with the Kong Gateway Admin API.
README 文档
README
A PHP7 compliant library for interacting with the Kong Gateway Admin API.
Kong Compatibility
Currently supporting Kong >= 0.10.0
Requirements
- cURL
- PHP 7.0+
Installation
Using Composer
To install kong-php with Composer, just add the following to your composer.json file:
{
"require-dev": {
"therealgambo/kong-php": "0.10.*"
}
}
or by running the following command:
composer require therealgambo/kong-php
Usage
PHP
Retrieving Kong node information
$kong = new \TheRealGambo\Kong\Kong(KONG_URL, KONG_PORT); $node = $kong->getNodeObject(); print_r($node->getInformation());
Retrieving a list of all API's on Kong
$kong = new \TheRealGambo\Kong\Kong(KONG_URL, KONG_PORT); $apis = $kong->getApiObject(); print_r($apis->list());
Versions
All releases will match for the stable versions of Kong released >= 0.10.0
This ensures stability and resillence within the library reducing any compatibility issues between versions.
License
Kong-php is open-source software and licensed under the MIT License.
Kong is Copyright Mashape, inc.
统计信息
- 总下载量: 9.75k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 13
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-03-23