PHPackages                             20steps/oauth2-php - 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. 20steps/oauth2-php

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

20steps/oauth2-php
==================

OAuth2 library

1.2.1(10y ago)059MITPHPPHP &gt;=5.3.2

Since Apr 15Pushed 8y ago3 watchersCompare

[ Source](https://github.com/20steps/oauth2-php)[ Packagist](https://packagist.org/packages/20steps/oauth2-php)[ Docs](https://github.com/FriendsOfSymfony/oauth2-php)[ RSS](/packages/20steps-oauth2-php/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (2)Versions (15)Used By (0)

OAuth2 Server Implementation
============================

[](#oauth2-server-implementation)

[![Build Status](https://camo.githubusercontent.com/1ba6bdd1cd12cc1399a29e95bcbe7c2c154acc2749dedbec018c3f039f068d3a/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f467269656e64734f6653796d666f6e792f6f61757468322d7068702e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/FriendsOfSymfony/oauth2-php)[![HHVM Status](https://camo.githubusercontent.com/677a8a79ae113bcaa0bf1f44864fdcb7e12201335dc82db0dc009c35186e429b/687474703a2f2f6868766d2e683463632e64652f62616467652f467269656e64734f6653796d666f6e792f6f61757468322d7068702e737667)](http://hhvm.h4cc.de/package/FriendsOfSymfony/oauth2-php)

This library now implements draft 20 of OAuth 2.0. The client is still only draft-10.

This version of oauth2-php is a fork of  with the following changes:

- Namespaced
- No more require(\_once)
- [PSR-4](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader.md) autoloading compatible
- Uses [HttpFoundation](https://github.com/symfony/HttpFoundation) Request and Response for input/output
- More testable design
- Better test coverage

(pull request is pending)

 is a fork of  updated against OAuth2.0 draft 20, with a better OO design.

 is the original repository, which seems abandonned.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor3

3 contributors hold 50%+ of commits

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 ~111 days

Recently: every ~226 days

Total

14

Last Release

3696d ago

### Community

Maintainers

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

---

Top Contributors

[![arnaud-lb](https://avatars.githubusercontent.com/u/365207?v=4)](https://github.com/arnaud-lb "arnaud-lb (42 commits)")[![alanbem](https://avatars.githubusercontent.com/u/320410?v=4)](https://github.com/alanbem "alanbem (21 commits)")[![willdurand](https://avatars.githubusercontent.com/u/217628?v=4)](https://github.com/willdurand "willdurand (18 commits)")[![hswong3i](https://avatars.githubusercontent.com/u/780562?v=4)](https://github.com/hswong3i "hswong3i (14 commits)")[![opendining](https://avatars.githubusercontent.com/u/645450?v=4)](https://github.com/opendining "opendining (8 commits)")[![robocoder](https://avatars.githubusercontent.com/u/922051?v=4)](https://github.com/robocoder "robocoder (5 commits)")[![stof](https://avatars.githubusercontent.com/u/439401?v=4)](https://github.com/stof "stof (5 commits)")[![adrienbrault](https://avatars.githubusercontent.com/u/611271?v=4)](https://github.com/adrienbrault "adrienbrault (3 commits)")[![vbardales](https://avatars.githubusercontent.com/u/1446444?v=4)](https://github.com/vbardales "vbardales (3 commits)")[![jasongrimes](https://avatars.githubusercontent.com/u/847646?v=4)](https://github.com/jasongrimes "jasongrimes (2 commits)")[![asuth](https://avatars.githubusercontent.com/u/46909?v=4)](https://github.com/asuth "asuth (2 commits)")[![helmut-hoffer-von-ankershoffen](https://avatars.githubusercontent.com/u/1826050?v=4)](https://github.com/helmut-hoffer-von-ankershoffen "helmut-hoffer-von-ankershoffen (2 commits)")[![aaronpk](https://avatars.githubusercontent.com/u/113001?v=4)](https://github.com/aaronpk "aaronpk (2 commits)")[![koemeet](https://avatars.githubusercontent.com/u/1569156?v=4)](https://github.com/koemeet "koemeet (1 commits)")[![jeffxpx](https://avatars.githubusercontent.com/u/1097693?v=4)](https://github.com/jeffxpx "jeffxpx (1 commits)")[![pyrech](https://avatars.githubusercontent.com/u/2021641?v=4)](https://github.com/pyrech "pyrech (1 commits)")[![richardfullmer](https://avatars.githubusercontent.com/u/384602?v=4)](https://github.com/richardfullmer "richardfullmer (1 commits)")[![GromNaN](https://avatars.githubusercontent.com/u/400034?v=4)](https://github.com/GromNaN "GromNaN (1 commits)")[![sasezaki](https://avatars.githubusercontent.com/u/42755?v=4)](https://github.com/sasezaki "sasezaki (1 commits)")[![felds](https://avatars.githubusercontent.com/u/139979?v=4)](https://github.com/felds "felds (1 commits)")

---

Tags

oauthoauth2

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/20steps-oauth2-php/health.svg)

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

###  Alternatives

[league/oauth2-server

A lightweight and powerful OAuth 2.0 authorization and resource server library with support for all the core specification grants. This library will allow you to secure your API with OAuth and allow your applications users to approve apps that want to access their data from your API.

6.6k136.0M248](/packages/league-oauth2-server)[league/oauth2-client

OAuth 2.0 Client Library

3.8k118.6M1.2k](/packages/league-oauth2-client)[hwi/oauth-bundle

Support for authenticating users using both OAuth1.0a and OAuth2 in Symfony.

2.4k21.5M69](/packages/hwi-oauth-bundle)[knpuniversity/oauth2-client-bundle

Integration with league/oauth2-client to provide services

83416.7M61](/packages/knpuniversity-oauth2-client-bundle)[friendsofsymfony/oauth2-php

OAuth2 library

51618.0M21](/packages/friendsofsymfony-oauth2-php)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)

PHPackages © 2026

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