PHPackages                             michalkvasnicak/oauth2-server - 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. michalkvasnicak/oauth2-server

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

michalkvasnicak/oauth2-server
=============================

OAuth 2.0 server implementation for PHP

v1.0.0-beta3(10y ago)72.0k21MITPHPPHP &gt;=5.4.0

Since Aug 21Pushed 10y ago1 watchersCompare

[ Source](https://github.com/michalkvasnicak/oauth2-server)[ Packagist](https://packagist.org/packages/michalkvasnicak/oauth2-server)[ Docs](http://github.com/michalkvasnicak/oauth2-server)[ RSS](/packages/michalkvasnicak-oauth2-server/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelogDependencies (2)Versions (5)Used By (1)

OAuth 2.0 server for PHP and HHVM
=================================

[](#oauth-20-server-for-php-and-hhvm)

---

- Develop: [![Build Status](https://camo.githubusercontent.com/7c3490ff03e58c466314c9e928b69c960525971adf3a2dfab0ac1316ad567cc0/68747470733a2f2f7472617669732d63692e6f72672f6d696368616c6b7661736e6963616b2f6f61757468322d7365727665722e7376673f6272616e63683d646576656c6f70)](https://travis-ci.org/michalkvasnicak/oauth2-server)
- Master: [![Build Status](https://camo.githubusercontent.com/1f885a6523ac5ca3e24f5fcc42300109f6cf0d92f3a2d4008c82b94293cc65ff/68747470733a2f2f7472617669732d63692e6f72672f6d696368616c6b7661736e6963616b2f6f61757468322d7365727665722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/michalkvasnicak/oauth2-server)
- [![Gittip](https://camo.githubusercontent.com/ae68e925bd826b24f09901df25d0d2d1b276f1cbf52f81bb6016157024a40ecb/687474703a2f2f696d672e736869656c64732e696f2f6769747469702f6d696368616c6b7661736e6963616b2e737667)](https://www.gittip.com/michalkvasnicak)
- [![Flattr this git repo](https://camo.githubusercontent.com/7e3f46a36526479d701ef7f90a0f8c3ac2fbab3087446e2a9fceed75cd1ab802/687474703a2f2f6170692e666c617474722e636f6d2f627574746f6e2f666c617474722d62616467652d6c617267652e706e67)](https://flattr.com/submit/auto?user_id=kvasnicak.michal&url=https://github.com/michalkvasnicak/oauth2-server&title=michalkvasnicak/oauth2-server&language=php&tags=github&category=software)

OAuth 2.0 server implementation of final draft

Examples of using different grant types are in tests directory.

This library is not tested in production.

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

[](#requirements)

---

- PHP &gt;= 5.4.0
- HHVM

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

[](#installation)

Using composer:

```
{
    "require": {
        "michalkvasnicak/oauth2-server": "dev-develop"
    }
}
```

Example
-------

[](#example)

### Grant access to application (client)

[](#grant-access-to-application-client)

Used by authorization code and implicit grant types

```
