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

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

klapaudius/oauth2-php
=====================

OAuth2 library

1.10.0(1mo ago)0750.2k↓36.7%23MITPHPPHP ^7.1.3 || ^7.2.5 || ^8.0.0 || ^8.2.0 || ^8.3.0

Since Apr 15Pushed 1mo agoCompare

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

READMEChangelog (7)Dependencies (5)Versions (26)Used By (3)

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

65

—

FairBetter than 99% of packages

Maintenance90

Actively maintained with recent releases

Popularity40

Moderate usage in the ecosystem

Community28

Small or concentrated contributor base

Maturity88

Battle-tested with a long release history

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

Total

25

Last Release

47d ago

PHP version history (7 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

1.6.0PHP ^5.5.9 || ^7.0.8 || ^7.1.3 || ^7.2.5 || ^8.0.0 || ^8.2.0

1.7.0PHP ^7.1.3 || ^7.2.5 || ^8.0.0 || ^8.2.0

1.9.0PHP ^7.1.3 || ^7.2.5 || ^8.0.0 || ^8.2.0 || ^8.3.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/64e21dad1586abffda80d609d01d811b2a384911803d32141fad9d00fd1088c7?d=identicon)[klapaudius](/maintainers/klapaudius)

---

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)")[![stof](https://avatars.githubusercontent.com/u/439401?v=4)](https://github.com/stof "stof (5 commits)")[![robocoder](https://avatars.githubusercontent.com/u/922051?v=4)](https://github.com/robocoder "robocoder (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)")[![klapaudius](https://avatars.githubusercontent.com/u/610451?v=4)](https://github.com/klapaudius "klapaudius (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)")[![borisDigitalinsure](https://avatars.githubusercontent.com/u/75781378?v=4)](https://github.com/borisDigitalinsure "borisDigitalinsure (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)")[![Nyholm](https://avatars.githubusercontent.com/u/1275206?v=4)](https://github.com/Nyholm "Nyholm (1 commits)")[![pauliuspetronis](https://avatars.githubusercontent.com/u/9326532?v=4)](https://github.com/pauliuspetronis "pauliuspetronis (1 commits)")[![pyrech](https://avatars.githubusercontent.com/u/2021641?v=4)](https://github.com/pyrech "pyrech (1 commits)")

---

Tags

oauthoauth2

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[simplesamlphp/simplesamlphp

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

1.1k13.0M218](/packages/simplesamlphp-simplesamlphp)[symfony/security-bundle

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

2.5k185.6M2.4k](/packages/symfony-security-bundle)[symfony/security-http

Symfony Security Component - HTTP Integration

1.7k177.2M382](/packages/symfony-security-http)[hwi/oauth-bundle

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

2.4k22.3M81](/packages/hwi-oauth-bundle)[knpuniversity/oauth2-client-bundle

Integration with league/oauth2-client to provide services

84318.3M84](/packages/knpuniversity-oauth2-client-bundle)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6942.5M421](/packages/drupal-core-recommended)

PHPackages © 2026

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