PHPackages                             xrelease/oauth2-xrel - 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. xrelease/oauth2-xrel

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

xrelease/oauth2-xrel
====================

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

1.0.1(10y ago)516MITPHPPHP &gt;=5.5.0

Since Apr 10Pushed 10y ago2 watchersCompare

[ Source](https://github.com/xrelease/oauth2-xrel)[ Packagist](https://packagist.org/packages/xrelease/oauth2-xrel)[ RSS](/packages/xrelease-oauth2-xrel/feed)WikiDiscussions master Synced 2mo ago

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

xREL Provider for OAuth 2.0 Client
==================================

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

[![Latest Version](https://camo.githubusercontent.com/4210b9b5914fe76855fa016927e20a45a6d3244a3fdd0fec6f3c8e4ec1fd53d5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f7872656c656173652f6f61757468322d7872656c2e7376673f7374796c653d666c61742d737175617265)](https://github.com/xrelease/oauth2-xrel/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build Status](https://camo.githubusercontent.com/6bffcbb4ff4e525833dafe15a6d08ba548aa1210adcff5a80bb0e1b597d53098/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7872656c656173652f6f61757468322d7872656c2f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/xrelease/oauth2-xrel/build-status/master)[![HHVM Status](https://camo.githubusercontent.com/1efabe254c1e6f8d2ac52b761784520f5933ad10e0f295411e50f1db56e18189/68747470733a2f2f696d672e736869656c64732e696f2f6868766d2f7872656c656173652f6f61757468322d7872656c2e7376673f7374796c653d666c61742d737175617265)](http://hhvm.h4cc.de/package/xrelease/oauth2-xrel)[![Coverage Status](https://camo.githubusercontent.com/8bc822ca4854ba335205151ddad15801fd53af7f4007fc76059b041f41d9be3d/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f7872656c656173652f6f61757468322d7872656c2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/xrelease/oauth2-xrel/code-structure)[![Quality Score](https://camo.githubusercontent.com/01c1ea16590e1f0d853e1fb0339922ea9336c674d26bf1c02df5471e913115e8/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7872656c656173652f6f61757468322d7872656c2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/xrelease/oauth2-xrel)[![Dependency Status](https://camo.githubusercontent.com/2ae567bf0873db1b516f41e6361edb3c398bd7f88c82ac12995bdfca2e41e6ba/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3537306132616361666364313961303033396631366131612f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/php/xrelease:oauth2-xrel/1.0.0)

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

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

[](#installation)

To install, use composer:

```
composer require xrelease/oauth2-xrel

```

Usage
-----

[](#usage)

Usage is the same as The League's OAuth client, using `\xREL\OAuth2\Client\Provider\xREL` as the provider.

### Authorization Code Flow

[](#authorization-code-flow)

```
