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

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

friendsofsymfony/oauth2-php
===========================

OAuth2 library

1.3.1(5y ago)51618.0M↑13.6%111[17 issues](https://github.com/FriendsOfSymfony/oauth2-php/issues)[10 PRs](https://github.com/FriendsOfSymfony/oauth2-php/pulls)20MITPHPPHP ^5.5.9 || ^7.0.8 || ^7.1.3 || ^7.2.5 || ^8.0.0

Since Apr 15Pushed 2y ago11 watchersCompare

[ Source](https://github.com/FriendsOfSymfony/oauth2-php)[ Packagist](https://packagist.org/packages/friendsofsymfony/oauth2-php)[ Docs](https://github.com/FriendsOfSymfony/oauth2-php)[ RSS](/packages/friendsofsymfony-oauth2-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (2)Versions (19)Used By (20)Security (1)

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

55

—

FairBetter than 98% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity68

Solid adoption and visibility

Community42

Growing community involvement

Maturity77

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

Recently: every ~458 days

Total

18

Last Release

1868d ago

PHP version history (4 changes)1.0.0PHP &gt;=5.3.2

1.2.3PHP ^5.5.9|&gt;=7.0.8

1.3.0PHP ^5.5.9|^7.0.8|^7.1.3|^7.2.5

1.3.1PHP ^5.5.9 || ^7.0.8 || ^7.1.3 || ^7.2.5 || ^8.0.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1620075?v=4)[François Ganachaud](/maintainers/couac)[@couac](https://github.com/couac)

---

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)")[![SebScoFr](https://avatars.githubusercontent.com/u/22073633?v=4)](https://github.com/SebScoFr "SebScoFr (5 commits)")[![stloyd](https://avatars.githubusercontent.com/u/67402?v=4)](https://github.com/stloyd "stloyd (4 commits)")[![vbardales](https://avatars.githubusercontent.com/u/1446444?v=4)](https://github.com/vbardales "vbardales (3 commits)")[![adrienbrault](https://avatars.githubusercontent.com/u/611271?v=4)](https://github.com/adrienbrault "adrienbrault (3 commits)")[![aaronpk](https://avatars.githubusercontent.com/u/113001?v=4)](https://github.com/aaronpk "aaronpk (2 commits)")[![asuth](https://avatars.githubusercontent.com/u/46909?v=4)](https://github.com/asuth "asuth (2 commits)")[![GuilhemN](https://avatars.githubusercontent.com/u/6871899?v=4)](https://github.com/GuilhemN "GuilhemN (2 commits)")[![jasongrimes](https://avatars.githubusercontent.com/u/847646?v=4)](https://github.com/jasongrimes "jasongrimes (2 commits)")[![marekm4](https://avatars.githubusercontent.com/u/12004357?v=4)](https://github.com/marekm4 "marekm4 (1 commits)")[![Nyholm](https://avatars.githubusercontent.com/u/1275206?v=4)](https://github.com/Nyholm "Nyholm (1 commits)")[![koemeet](https://avatars.githubusercontent.com/u/1569156?v=4)](https://github.com/koemeet "koemeet (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)")

---

Tags

oauthoauth2

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/friendsofsymfony-oauth2-php/health.svg)](https://phpackages.com/packages/friendsofsymfony-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

84016.7M61](/packages/knpuniversity-oauth2-client-bundle)[league/oauth2-google

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

42121.2M118](/packages/league-oauth2-google)[bshaffer/oauth2-server-httpfoundation-bridge

A bridge to HttpFoundation for oauth2-server-php

522.3M12](/packages/bshaffer-oauth2-server-httpfoundation-bridge)

PHPackages © 2026

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