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

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

esvit/oauth2-php
================

OAuth2 library

1.0.8(12y ago)0181MITPHPPHP &gt;=5.3.2

Since Apr 15Pushed 12y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (10)Used By (0)

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

[](#oauth2-server-implementation)

[![Build Status](https://camo.githubusercontent.com/1ba6bdd1cd12cc1399a29e95bcbe7c2c154acc2749dedbec018c3f039f068d3a/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f467269656e64734f6653796d666f6e792f6f61757468322d7068702e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/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-0](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.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

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor2

2 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 ~58 days

Recently: every ~76 days

Total

9

Last Release

4717d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/53fadedc1d3ea24072a5aa9c51ba3dfb9d3a2bf54c87314bba9d3981899f49a6?d=identicon)[esvit](/maintainers/esvit)

---

Top Contributors

[![arnaud-lb](https://avatars.githubusercontent.com/u/365207?v=4)](https://github.com/arnaud-lb "arnaud-lb (39 commits)")[![willdurand](https://avatars.githubusercontent.com/u/217628?v=4)](https://github.com/willdurand "willdurand (17 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)")[![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)")[![stof](https://avatars.githubusercontent.com/u/439401?v=4)](https://github.com/stof "stof (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)")[![jasongrimes](https://avatars.githubusercontent.com/u/847646?v=4)](https://github.com/jasongrimes "jasongrimes (2 commits)")[![GromNaN](https://avatars.githubusercontent.com/u/400034?v=4)](https://github.com/GromNaN "GromNaN (1 commits)")[![richardfullmer](https://avatars.githubusercontent.com/u/384602?v=4)](https://github.com/richardfullmer "richardfullmer (1 commits)")[![felds](https://avatars.githubusercontent.com/u/139979?v=4)](https://github.com/felds "felds (1 commits)")[![esvit](https://avatars.githubusercontent.com/u/1222467?v=4)](https://github.com/esvit "esvit (1 commits)")[![edorian](https://avatars.githubusercontent.com/u/247397?v=4)](https://github.com/edorian "edorian (1 commits)")[![benjamindulau](https://avatars.githubusercontent.com/u/430689?v=4)](https://github.com/benjamindulau "benjamindulau (1 commits)")

---

Tags

oauthoauth2

### Embed Badge

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

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

###  Alternatives

[symfony/security-bundle

Provides a tight integration of the Security component into the Symfony full-stack framework

2.5k181.3M2.2k](/packages/symfony-security-bundle)[hwi/oauth-bundle

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

2.4k22.0M76](/packages/hwi-oauth-bundle)[simplesamlphp/simplesamlphp

A PHP implementation of a SAML 2.0 service provider and identity provider.

1.1k12.8M211](/packages/simplesamlphp-simplesamlphp)[knpuniversity/oauth2-client-bundle

Integration with league/oauth2-client to provide services

84217.7M77](/packages/knpuniversity-oauth2-client-bundle)[friendsofsymfony/oauth2-php

OAuth2 library

51618.2M21](/packages/friendsofsymfony-oauth2-php)[bshaffer/oauth2-server-httpfoundation-bridge

A bridge to HttpFoundation for oauth2-server-php

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

PHPackages © 2026

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