This package is abandoned and no longer maintained. The author suggests using the oauth2-framework/server-library package instead.

OAuth2 Server Library


Help me out for a couple of 🍻!

Beerpay Beerpay

Join the chat at https://gitter.im/OAuth2-Framework/server-library

Scrutinizer Code Quality Coverage Status PSR-7 ready

Dependency Status

Build Status HHVM Status PHP 7 ready


Latest Stable Version Total Downloads Latest Unstable Version License

This library provides components to build an authorization server based on the OAuth2 Framework protocol (RFC6749) and associated features.

The following components are implemented:

The Release Process

The release process is described here.


This library needs at least PHP 5.6+.

It has been successfully tested using PHP 5.6, PHP 7.0, PHP 7.1 and HHVM.


The preferred way to install this library is to rely on Composer:

composer require "oauth2-framework/server-library"

How to use

Have a look at How to use to use OAuth2 server and handle your first requests.


Requests for new features, bug fixed and all other ideas to make this library useful are welcome. The best contribution you could provide is by fixing the opened issues where help is wanted

Please make sure to follow these best practices.


This library is release under MIT licence.