PHPackages                             kong/kong-oauth2-php-provider - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. kong/kong-oauth2-php-provider

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

kong/kong-oauth2-php-provider
=============================

Kong OAuth 2.0 Client Provider for The PHP League OAuth2-Client

0.0.2(10y ago)2317MITPHPPHP &gt;=5.5.0

Since Jul 8Pushed 10y ago3 watchersCompare

[ Source](https://github.com/kong/kong-oauth2-php-provider)[ Packagist](https://packagist.org/packages/kong/kong-oauth2-php-provider)[ RSS](/packages/kong-kong-oauth2-php-provider/feed)WikiDiscussions master Synced 1mo ago

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

Kong Provider for OAuth 2.0 Client
==================================

[](#kong-provider-for-oauth-20-client)

This package provides Kong OAuth 2.0 support for the PHP League's [OAuth 2.0 Client](https://github.com/thephpleague/oauth2-client).

Requirements
------------

[](#requirements)

The following versions of PHP are supported.

- PHP 5.5
- PHP 5.6
- PHP 7.0
- HHVM

Installation
------------

[](#installation)

Add the following to your `composer.json` file.

> **Note:** Once version 1.0 of the [OAuth 2.0 Client](https://github.com/thephpleague/oauth2-client) is released, you'll be able to install from composer without the `@dev` minimum stability flag.

```
{
    "require": {
        "kong/kong-oauth2-php-provider": "~0.0@dev",
        "league/oauth2-client": "~1.0@dev"
    }
}
```

> **Note:** OAuth 2.0 Client v1.0 is still in dev mode so you'll need to require it explicitly in your require using the `@dev` minimum stability flag since [composer won't pull in a dev mode dependency of a dependency](https://getcomposer.org/doc/faqs/why-can%27t-composer-load-repositories-recursively.md).

Usage
-----

[](#usage)

### Authorization Code Flow

[](#authorization-code-flow)

See example/index.php

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/thephpleague/oauth2-facebook/blob/master/LICENSE) for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

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 ~3 days

Total

3

Last Release

3960d ago

### Community

Maintainers

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

---

Tags

AuthenticationSSOidentityoauthoauth2authorizationidpsingle sign onecommercekong

### Embed Badge

![Health badge](/badges/kong-kong-oauth2-php-provider/health.svg)

```
[![Health](https://phpackages.com/badges/kong-kong-oauth2-php-provider/health.svg)](https://phpackages.com/packages/kong-kong-oauth2-php-provider)
```

###  Alternatives

[adam-paterson/oauth2-slack

Slack OAuth 2.0 Client Provider for The PHP League OAuth2-Client

22694.8k5](/packages/adam-paterson-oauth2-slack)

PHPackages © 2026

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