Skip to content
PHP Wrapper for Kong API Gateway - Microservices Management Layer, delivering high performance and reliability.
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea
Kong
.atoum.php
.bootstrap.atoum.php
.gitignore
.travis.yml
LICENSE
README.md
composer.json

README.md

Kong

PHP Wrapper for Kong API Gateway - Microservices Management Layer, delivering high performance and reliability.

Build Status Current Version composer.lock

Total Downloads Monthly Downloads Daily Downloads

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);
You can’t perform that action at this time.