PHPackages                             spirit-dev/oauth2-server-bundle - 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. [DevOps &amp; Deployment](/categories/devops)
4. /
5. spirit-dev/oauth2-server-bundle

AbandonedArchivedSymfony-bundle[DevOps &amp; Deployment](/categories/devops)

spirit-dev/oauth2-server-bundle
===============================

Symfony OAuth2 Bundle server side

0.6(11y ago)051GPL-v2PHPPHP &gt;=5.3.2

Since Mar 6Pushed 11y agoCompare

[ Source](https://github.com/spirit-dev/OAuth2ServerBundle)[ Packagist](https://packagist.org/packages/spirit-dev/oauth2-server-bundle)[ RSS](/packages/spirit-dev-oauth2-server-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (8)Used By (0)

Getting Started With SpiritDevO-Auth2ServerBundle
=================================================

[](#getting-started-with-spiritdevo-auth2serverbundle)

Introduction
------------

[](#introduction)

OAuth2ServerBundle is an OAuth2 flow manager. Define your API grants, your rendering template and thats all. It manages for you token flows from [OAuth2](http://oauth.net/2/) Protocol. It also provides a direct login to API side. Take a look to the following to get started with OAuth2ServerBundle ;)

Note
----

[](#note)

The actual version is designed for Symfony 2.6. Upper Symfony versions may have issues.

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

[](#installation)

Installation is a quick 3 steps process:

1. Download SpiritDevOAuth2ServerBundle
2. Enable the Bundle
3. Configure the SpiritDevOAuth2ServerBundle

### Step 1: Install SpiritDevOAuth2ServerBundle

[](#step-1-install-spiritdevoauth2serverbundle)

The preferred way to install this bundle is to rely on [Composer](http://getcomposer.org). Just check on [Packagist](https://packagist.org/packages/spirit-dev/oauth2-server-bundle) the version you want to install (in the following example, we used "dev-master") and add it to your `composer.json`:

```
{
    "require": {
        // ...
        "spirit-dev/oauth2-server-bundle": "dev-master"
    }
}
```

### Step 2: Enable the bundle

[](#step-2-enable-the-bundle)

Finally, enable the bundle in the kernel:

```
