Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/smalot/kong-api
PHP Wrapper for Kong API Gateway - Microservices Management Layer, delivering high performance and reliability.
https://github.com/smalot/kong-api
composer kong kong-api php-wrapper reliability
Last synced: 3 days ago
JSON representation
PHP Wrapper for Kong API Gateway - Microservices Management Layer, delivering high performance and reliability.
- Host: GitHub
- URL: https://github.com/smalot/kong-api
- Owner: smalot
- License: mit
- Created: 2017-09-20T09:00:20.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-28T00:31:53.000Z (about 7 years ago)
- Last Synced: 2024-11-18T09:58:04.875Z (about 2 months ago)
- Topics: composer, kong, kong-api, php-wrapper, reliability
- Language: PHP
- Size: 26.4 KB
- Stars: 1
- Watchers: 4
- Forks: 4
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Kong
====PHP Wrapper for Kong API Gateway - Microservices Management Layer, delivering high performance and reliability.
[![Build Status](https://travis-ci.org/smalot/kong-api.png?branch=master)](https://travis-ci.org/smalot/kong-api)
[![Current Version](https://poser.pugx.org/smalot/kong-api/v/stable.png)](https://packagist.org/packages/smalot/kong-api)
[![composer.lock](https://poser.pugx.org/smalot/kong-api/composerlock)](https://packagist.org/packages/smalot/kong-api)[![Total Downloads](https://poser.pugx.org/smalot/kong-api/downloads.png)](https://packagist.org/packages/smalot/kong-api)
[![Monthly Downloads](https://poser.pugx.org/smalot/kong-api/d/monthly)](https://packagist.org/packages/smalot/kong-api)
[![Daily Downloads](https://poser.pugx.org/smalot/kong-api/d/daily)](https://packagist.org/packages/smalot/kong-api)Compatibility
=============Currently supported Kong version: `0.11`.
Supported services:
- Api
- Certificate
- Consumer
- Plugin
- Sni
- Target
- UpstreamRequires at least PHP 5.6.
Install
=======This library can be installed with composer:
````sh
composer require smalot/kong-api
````Usage
=====````php
$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);
````