PHPackages                             smalot/kong-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. smalot/kong-api

ActiveLibrary[API Development](/categories/api)

smalot/kong-api
===============

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

v0.4(8y ago)126.4k3[1 issues](https://github.com/smalot/kong-api/issues)[1 PRs](https://github.com/smalot/kong-api/pulls)MITPHPPHP &gt;=5.5

Since Sep 21Pushed 8y ago2 watchersCompare

[ Source](https://github.com/smalot/kong-api)[ Packagist](https://packagist.org/packages/smalot/kong-api)[ RSS](/packages/smalot-kong-api/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (4)Dependencies (3)Versions (5)Used By (0)

Kong
====

[](#kong)

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

[![Build Status](https://camo.githubusercontent.com/a33299dddf1798236fa4180038819b9042edd814af53137c24023514dceffef5/68747470733a2f2f7472617669732d63692e6f72672f736d616c6f742f6b6f6e672d6170692e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/smalot/kong-api)[![Current Version](https://camo.githubusercontent.com/e6015fcad6326d2197b79a9683e70a550129117f6bb10031aeff8872bb76c704/68747470733a2f2f706f7365722e707567782e6f72672f736d616c6f742f6b6f6e672d6170692f762f737461626c652e706e67)](https://packagist.org/packages/smalot/kong-api)[![composer.lock](https://camo.githubusercontent.com/3d7c990b0456cc8061f20ee692f81f52ab164256a7625735f478e47cc1be3c4c/68747470733a2f2f706f7365722e707567782e6f72672f736d616c6f742f6b6f6e672d6170692f636f6d706f7365726c6f636b)](https://packagist.org/packages/smalot/kong-api)

[![Total Downloads](https://camo.githubusercontent.com/d0f90feaa8563c8ecfae5c66cb0c9c7fc53d6f46d3beb4c4bc6e429dcf257ab1/68747470733a2f2f706f7365722e707567782e6f72672f736d616c6f742f6b6f6e672d6170692f646f776e6c6f6164732e706e67)](https://packagist.org/packages/smalot/kong-api)[![Monthly Downloads](https://camo.githubusercontent.com/ca3a46dac88f58bd5c6343abbfaa939f6b56c9e0c5aa48d48de18e3eae6ead93/68747470733a2f2f706f7365722e707567782e6f72672f736d616c6f742f6b6f6e672d6170692f642f6d6f6e74686c79)](https://packagist.org/packages/smalot/kong-api)[![Daily Downloads](https://camo.githubusercontent.com/4399eab5eeaa6d1ad90fc213059c132fe1819fc7371b3ab112197a072e04e3a8/68747470733a2f2f706f7365722e707567782e6f72672f736d616c6f742f6b6f6e672d6170692f642f6461696c79)](https://packagist.org/packages/smalot/kong-api)

Compatibility
=============

[](#compatibility)

Currently supported Kong version: `0.11`.

Supported services:

- Api
- Certificate
- Consumer
- Plugin
- Sni
- Target
- Upstream

Requires at least PHP 5.6.

Install
=======

[](#install)

This library can be installed with composer:

```
composer require smalot/kong-api
```

Usage
=====

[](#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);
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~4 days

Total

4

Last Release

3190d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e8229439a3d4f53cefbdae10395a2d6f2dea8906c239e87ce840bd459d1ba187?d=identicon)[smalot](/maintainers/smalot)

---

Top Contributors

[![smalot](https://avatars.githubusercontent.com/u/1424035?v=4)](https://github.com/smalot "smalot (8 commits)")

---

Tags

composerkongkong-apiphp-wrapperreliability

### Embed Badge

![Health badge](/badges/smalot-kong-api/health.svg)

```
[![Health](https://phpackages.com/badges/smalot-kong-api/health.svg)](https://phpackages.com/packages/smalot-kong-api)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.8M712](/packages/sylius-sylius)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.3M7](/packages/avalara-avataxclient)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.7k371.6k6](/packages/theodo-group-llphant)[keboola/storage-api-client

Keboola Storage API PHP Client

10397.4k31](/packages/keboola-storage-api-client)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
