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

MAC Access Token for OAuth2 Server

v4.0.0 2015-03-10 21:24 UTC


Scrutinizer Code Quality Code Coverage

Build Status HHVM Status


Latest Stable Version Total Downloads Latest Unstable Version License

This library adds a new type of access token for OAuth2 Server: MAC Access Token.

This package only implements the draft 2 of the IETF Specification.

It relies on the OAuth2 Interfaces Project.

The Release Process

We manage its releases through features and time-based models.

  • A new patch version comes out every month when you made backwards-compatible bug fixes.
  • A new minor version comes every six months when we added functionality in a backwards-compatible manner.
  • A new major version comes every year when we make incompatible API changes.

The meaning of "patch" "minor" and "major" comes from the Semantic Versioning strategy.

This release process applies from version 3.0.x.

Backwards Compatibility

We allow developers to upgrade with confidence from one minor version to the next one.

Whenever keeping backward compatibility is not possible, the feature, the enhancement or the bug fix will be scheduled for the next major version.


This library needs at least PHP 5.4. It has been successfully tested using PHP 5.4 to PHP 5.6 and HHVM


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

    composer require "spomky-labs/oauth2-server-mac-token" "~4.0"

Extend the library

This library only contains the logic. You must extend all classes to define setters and getters.

Look at Extend classes for more informations and examples.

How to use

Your classes are ready to use? Have a look at How to use to use your exception manager with an OAuth2 server.


Requests for new features, bug fixed and all other ideas to make this library usefull are welcome. Please follow these best practices.


This library is release under MIT licence.