kong/kong-oauth2-php-provider

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

0.0.2 2015-07-15 11:57 UTC

This package is not auto-updated.

Last update: 2024-04-27 14:28:16 UTC


README

This package provides Kong OAuth 2.0 support for the PHP League's OAuth 2.0 Client.

Requirements

The following versions of PHP are supported.

  • PHP 5.5
  • PHP 5.6
  • PHP 7.0
  • HHVM

Installation

Add the following to your composer.json file.

Note: Once version 1.0 of the OAuth 2.0 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.

Usage

Authorization Code Flow

See example/index.php

License

The MIT License (MIT). Please see License File for more information.