PHPackages                             oauth2-framework/oauth2-framework - 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. [Framework](/categories/framework)
4. /
5. oauth2-framework/oauth2-framework

ActiveLibrary[Framework](/categories/framework)

oauth2-framework/oauth2-framework
=================================

The OAuth2 Framework

2.0.x-dev(4y ago)123943[15 issues](https://github.com/OAuth2-Framework/oauth2-framework/issues)[9 PRs](https://github.com/OAuth2-Framework/oauth2-framework/pulls)MITPHPPHP ^8.1

Since Jan 5Pushed 3y ago4 watchersCompare

[ Source](https://github.com/OAuth2-Framework/oauth2-framework)[ Packagist](https://packagist.org/packages/oauth2-framework/oauth2-framework)[ Docs](https://oauth2-framework.spomky-labs.com/)[ Patreon](https://www.patreon.com/FlorentMorselli)[ RSS](/packages/oauth2-framework-oauth2-framework/feed)WikiDiscussions 2.0.x Synced 4w ago

READMEChangelogDependencies (51)Versions (11)Used By (0)

OAuth2 And OpenID Connect Framework for PHP
===========================================

[](#oauth2-and-openid-connect-framework-for-php)

Help me out for a couple of 🍻!

[![Beerpay](https://camo.githubusercontent.com/0c8fc1eee881083f94cb68ded16112ac575b7fac58646ff08c61b3363b8d33cb/68747470733a2f2f626565727061792e696f2f4f41757468322d4672616d65776f726b2f6f61757468322d6672616d65776f726b2f62616467652e737667)](https://beerpay.io/OAuth2-Framework/oauth2-framework)[![Beerpay](https://camo.githubusercontent.com/1ff4aa1f46e07c429a47e178b89adf561b3bd8c47fe93fadab65b03b26c58674/68747470733a2f2f626565727061792e696f2f4f41757468322d4672616d65776f726b2f6f61757468322d6672616d65776f726b2f6d616b652d776973682e737667)](https://beerpay.io/OAuth2-Framework/oauth2-framework)

---

[![Codacy Badge](https://camo.githubusercontent.com/d920ea62f65a4003373bbf3539ac5b5751013e689137daaeda12ef961bdf09e5/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f6365613966323630643438343462316362643562663235326461643530663130)](https://www.codacy.com/app/Spomky/oauth2-framework?utm_source=github.com&utm_medium=referral&utm_content=OAuth2-Framework/oauth2-framework&utm_campaign=Badge_Grade)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/080d844c27dad1572c9551141e053f57ccdee4a168d75ed8f95bcdc2c9f5e27f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4f41757468322d4672616d65776f726b2f6f61757468322d6672616d65776f726b2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/OAuth2-Framework/oauth2-framework/?branch=master)[![Coverage Status](https://camo.githubusercontent.com/287b96d91d364a22da20f0f1af80821e650e5597b686b172801697c047cbea56/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f4f41757468322d4672616d65776f726b2f6f61757468322d6672616d65776f726b2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/OAuth2-Framework/oauth2-framework?branch=master)

[![Requirements Status](https://camo.githubusercontent.com/3d6f4b7780500501c3da3c003c2504a786ea3c972bce580054b4735849d3ae74/68747470733a2f2f72657175697265732e696f2f6769746875622f4f41757468322d4672616d65776f726b2f6f61757468322d6672616d65776f726b2f726571756972656d656e74732e7376673f6272616e63683d6d6173746572)](https://requires.io/github/OAuth2-Framework/oauth2-framework/requirements/?branch=master)

[![Build Status](https://camo.githubusercontent.com/72aa2518b5eba3baeec2d4422310fdb2bb5475222ea7276b4e8ab85791eef309/68747470733a2f2f7472617669732d63692e6f72672f4f41757468322d4672616d65776f726b2f6f61757468322d6672616d65776f726b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/OAuth2-Framework/oauth2-framework)

[![SensioLabsInsight](https://camo.githubusercontent.com/96033ec3664f2da30f1bc2c47877c266c172f44e11c257c8cb09bf64daf05543/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f64343137326136662d623761632d343132332d383764332d3836626166333663663961392f6269672e706e67)](https://insight.sensiolabs.com/projects/d4172a6f-b7ac-4123-87d3-86baf36cf9a9)

[![Latest Stable Version](https://camo.githubusercontent.com/ef7c0ab8e4be60f612fbab3d06abe0e1c93e6f44d75ad31cfbb4d05c4d5f8895/68747470733a2f2f706f7365722e707567782e6f72672f6f61757468322d6672616d65776f726b2f6f61757468322d6672616d65776f726b2f762f737461626c652e706e67)](https://packagist.org/packages/oauth2-framework/oauth2-framework)[![Total Downloads](https://camo.githubusercontent.com/36443f16baf85c8281679801c20c7973cd587e18559e718a953c8d54fbf3e0fc/68747470733a2f2f706f7365722e707567782e6f72672f6f61757468322d6672616d65776f726b2f6f61757468322d6672616d65776f726b2f646f776e6c6f6164732e706e67)](https://packagist.org/packages/oauth2-framework/oauth2-framework)[![Latest Unstable Version](https://camo.githubusercontent.com/25ea093d9544c96fa516c79ea571db1a0c598004ade78587175ee85c128f2381/68747470733a2f2f706f7365722e707567782e6f72672f6f61757468322d6672616d65776f726b2f6f61757468322d6672616d65776f726b2f762f756e737461626c652e706e67)](https://packagist.org/packages/oauth2-framework/oauth2-framework)[![License](https://camo.githubusercontent.com/81e246fa951ac425c5166af7e08e221597fdad4742bede5bef9ef053b9366348/68747470733a2f2f706f7365722e707567782e6f72672f6f61757468322d6672616d65776f726b2f6f61757468322d6672616d65776f726b2f6c6963656e73652e706e67)](https://packagist.org/packages/oauth2-framework/oauth2-framework)

**OAuth2 Framework for PHP** is a **PHP framework** for web applications and a set of reusable **PHP components**. It is used to build an authorization server based on the OAuth2 Framework protocol ([RFC6749](https://tools.ietf.org/html/rfc6749)) and associated features.

Installation
============

[](#installation)

Install **OAuth2 Framework for PHP** with Composer: `composer require oauth2-framework/oauth2-framework`.

This project follows the [semantic versioning](http://semver.org/) strictly.

Documentation
=============

[](#documentation)

The documentation of this project [is available here](https://oauth2-framework.spomky-labs.com).

Contributing
============

[](#contributing)

Requests for new features, bug fixed and all other ideas to make this project useful are welcome. The best contribution you could provide is by fixing the [opened issues where help is wanted](https://github.com/OAuth2-Framework/oauth2-framework/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22).

Please report all issues in [the main repository](https://github.com/OAuth2-Framework/oauth2-framework/issues).

Please make sure to [follow these best practices](.github/CONTRIBUTING.md).

Security Issues
===============

[](#security-issues)

If you discover a security vulnerability within the project, please **don't use the bug tracker and don't publish it publicly**. Instead, all security issues must be sent to security \[at\] spomky-labs.com.

Licence
=======

[](#licence)

This project is release under [MIT licence](LICENSE).

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 99.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~454 days

Total

2

Last Release

1547d ago

Major Versions

1.0.x-dev → 2.0.x-dev2022-04-05

PHP version history (2 changes)1.0.x-devPHP ^7.4|^8.0

2.0.x-devPHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/ccc6c59de7d9ddc53219653bc58f1e082ef83d96632d233eedc0b7097cf80ea3?d=identicon)[Spomky](/maintainers/Spomky)

---

Top Contributors

[![Spomky](https://avatars.githubusercontent.com/u/1091072?v=4)](https://github.com/Spomky "Spomky (461 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")

---

Tags

oauth2oauth2-clientoauth2-serveropenid-connectopenid-serverphpphp7frameworklibraryserveroauth2authorizationOpenIdOpenID Connectoidcrfc6749

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StyleECS

Type Coverage Yes

### Embed Badge

![Health badge](/badges/oauth2-framework-oauth2-framework/health.svg)

```
[![Health](https://phpackages.com/badges/oauth2-framework-oauth2-framework/health.svg)](https://phpackages.com/packages/oauth2-framework-oauth2-framework)
```

###  Alternatives

[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M528](/packages/shopware-core)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M196](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.1k16.8k](/packages/prestashop-prestashop)[contao/core-bundle

Contao Open Source CMS

1231.6M2.7k](/packages/contao-core-bundle)[chameleon-system/chameleon-base

The Chameleon System core.

1027.9k4](/packages/chameleon-system-chameleon-base)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
