PHPackages                             photon/oauth2-server - 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. [DevOps &amp; Deployment](/categories/devops)
4. /
5. photon/oauth2-server

ActiveLibrary[DevOps &amp; Deployment](/categories/devops)

photon/oauth2-server
====================

OAuth 2 helper for photon

v1.1.1(9y ago)0147LGPL-2.1PHP

Since Feb 6Pushed 9y ago2 watchersCompare

[ Source](https://github.com/photon/oauth2-server)[ Packagist](https://packagist.org/packages/photon/oauth2-server)[ Docs](http://www.photon-project.com/)[ RSS](/packages/photon-oauth2-server/feed)WikiDiscussions master Synced yesterday

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

oauth2-server
=============

[](#oauth2-server)

[![Build Status](https://camo.githubusercontent.com/4f29485b48c868360a7d7139f447091089c9526fda4acdc08cc23dd7d1af5495/68747470733a2f2f7472617669732d63692e6f72672f70686f746f6e2f6f61757468322d7365727665722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/photon/oauth2-server)

Quick start
-----------

[](#quick-start)

1. Add the module in your project

    composer require "photon/oauth2-server:dev-master"

or for a specific version

```
composer require "photon/oauth2-server:1.0.0"

```

2. Create a OAuth2 server class

You need to extends the abstract class "Server". This class perform automatics convertion for $request and $response object.

```
class MyOAuth2Server extends \photon\auth\oauth2\Server
{
    protected function initializeServer(&$server)
    {
        $storage = new \OAuth2\Storage\Mongo();
        $server->addStorage($storage);
        $server->addGrantType(new \OAuth2\GrantType\AuthorizationCode($storage));
        ...
    }
}

```

You can use this class like the original "\\OAuth2\\Server".

3. Define your oauth server class in the project configuration

    'oauth\_server' =&gt; '\\foo\\bar\\MyOAuth2Server'
4. Enjoy !

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~6 days

Total

3

Last Release

3419d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/32f98ddde8bc7b4f6fadce6a4030a77dc6dfd8e08d8e5b122ab4cc70232f6341?d=identicon)[delkia](/maintainers/delkia)

---

Top Contributors

[![wysman](https://avatars.githubusercontent.com/u/1042272?v=4)](https://github.com/wysman "wysman (9 commits)")

---

Tags

oauth2-serverphotonphpserveroauth2photon

### Embed Badge

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

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

PHPackages © 2026

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