PHPackages                             samsonasik/zf-oauth2-doctrine - 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. [Database &amp; ORM](/categories/database)
4. /
5. samsonasik/zf-oauth2-doctrine

ActiveLibrary[Database &amp; ORM](/categories/database)

samsonasik/zf-oauth2-doctrine
=============================

Doctrine OAuth2 Server Adapter for Apigility

4.1.1(2y ago)08.3k1[1 PRs](https://github.com/samsonasik/zf-oauth2-doctrine/pulls)MITPHPPHP ^7.3|~8.0

Since Apr 13Pushed 2y agoCompare

[ Source](https://github.com/samsonasik/zf-oauth2-doctrine)[ Packagist](https://packagist.org/packages/samsonasik/zf-oauth2-doctrine)[ RSS](/packages/samsonasik-zf-oauth2-doctrine/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (21)Versions (44)Used By (0)

OAuth2 Doctrine ORM Adapter for Apigility/Laminas API Tools
===========================================================

[](#oauth2-doctrine-orm-adapter-for-apigilitylaminas-api-tools)

> This is a Fork of

[![Build Status](https://camo.githubusercontent.com/a31ed0308a7d1dd8e8bce56fe1567a65073d7b1f2cfc3cf28f5267b6081e9fbb/68747470733a2f2f7472617669732d63692e636f6d2f73616d736f6e6173696b2f7a662d6f61757468322d646f637472696e652e737667)](https://travis-ci.com/samsonasik/zf-oauth2-doctrine)[![Documentation Status](https://camo.githubusercontent.com/7730066a1079e895013cefa0bb5d53569702ad0ba487781aa7b94fc28772ce2d/68747470733a2f2f72656164746865646f63732e6f72672f70726f6a656374732f646f637472696e652d696e2d61706967696c6974792d646f63732f62616467652f3f76657273696f6e3d6c6174657374)](http://doctrine-in-apigility-docs.readthedocs.io/en/latest/zf-oauth2-doctrine/index.html)[![Gitter](https://camo.githubusercontent.com/0646a4cbb964c5dbe65c638a26b693e0182131cbf58b12fed5ec181dfc45cf9d/68747470733a2f2f6261646765732e6769747465722e696d2f73616d736f6e6173696b2f6f70656e2d736f757263652e737667)](https://gitter.im/samsonasik/open-source)[![Patreon](https://camo.githubusercontent.com/f9e075baad95563481d35174d43ef50757281abb6bc795d0f473fad452afa030/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70617472656f6e2d646f6e6174652d79656c6c6f772e737667)](https://www.patreon.com/apiskeletons)[![Total Downloads](https://camo.githubusercontent.com/81fe0f3dae7286f6bbbd4c0f9a28487d2ec0d614cf1766fbd5de64afcffff626/68747470733a2f2f706f7365722e707567782e6f72672f73616d736f6e6173696b2f7a662d6f61757468322d646f637472696e652f646f776e6c6f616473)](https://packagist.org/packages/samsonasik/zf-oauth2-doctrine)

This provides a Doctrine adapter for [laminas-api-tools/api-tools-mvc-auth](https://github.com/laminas-api-tools/api-tools-mvc-auth) and [laminas-api-tools/api-tools-oauth2](https://github.com/laminas-api-tools/api-tools-oauth2) and entity definitions for all aspects of OAuth2 including Authorization Code, Access Tokens, Refresh Tokens, JWT &amp; JTI, and Scopes.

Versions
--------

[](#versions)

- 1.x series is for PHP 5.5 to 7.0.
- 2.x series is for PHP 7.1 onward.
- 3.x series is for PHP 7.1 onward and uses bigint instead of integer, scope fixture, and bcrypt cost of 10.
- 4.x series is for PHP 7.3|~8.0 with laminas support.

[![Entity Relationship Diagram](https://raw.githubusercontent.com/samsonasik/zf-oauth2-doctrine/master/media/oauth2-doctrine-erd.png)](https://raw.githubusercontent.com/samsonasik/zf-oauth2-doctrine/master/media/oauth2-doctrine-erd.png)Entity Relationship Diagram created with [Skipper](https://skipper18.com)

[Read The Documentation](http://doctrine-in-apigility-docs.readthedocs.io/en/latest/zf-oauth2-doctrine/index.html)
==================================================================================================================

[](#read-the-documentation)

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity81

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 77.8% 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 ~74 days

Recently: every ~215 days

Total

41

Last Release

1082d ago

Major Versions

0.3.5 → 1.0.02015-08-31

1.1.2 → 2.0.02017-10-02

2.0.4 → 3.0.02018-03-10

3.1.5 → 4.0.02021-01-17

PHP version history (5 changes)0.1.0PHP &gt;=5.3.23

1.0.0PHP &gt;=5.5

1.1.0PHP ^5.5 || ^7.0

2.0.0PHP &gt;=7.1

4.0.0PHP ^7.3|~8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/19076b7688ca1c8ee79ab3ac6fa6acdd7b96012973aba3b1a06cbb3154d7f3e5?d=identicon)[samsonasik](/maintainers/samsonasik)

---

Top Contributors

[![TomHAnderson](https://avatars.githubusercontent.com/u/493920?v=4)](https://github.com/TomHAnderson "TomHAnderson (137 commits)")[![samsonasik](https://avatars.githubusercontent.com/u/459648?v=4)](https://github.com/samsonasik "samsonasik (16 commits)")[![basz](https://avatars.githubusercontent.com/u/143068?v=4)](https://github.com/basz "basz (11 commits)")[![thomasvargiu](https://avatars.githubusercontent.com/u/732012?v=4)](https://github.com/thomasvargiu "thomasvargiu (5 commits)")[![viniciusgava](https://avatars.githubusercontent.com/u/831829?v=4)](https://github.com/viniciusgava "viniciusgava (3 commits)")[![juizmill](https://avatars.githubusercontent.com/u/1959742?v=4)](https://github.com/juizmill "juizmill (1 commits)")[![hagmann](https://avatars.githubusercontent.com/u/11349379?v=4)](https://github.com/hagmann "hagmann (1 commits)")[![sergiohermes](https://avatars.githubusercontent.com/u/1915564?v=4)](https://github.com/sergiohermes "sergiohermes (1 commits)")[![DannyvdSluijs](https://avatars.githubusercontent.com/u/618940?v=4)](https://github.com/DannyvdSluijs "DannyvdSluijs (1 commits)")

---

Tags

doctrineoauth2laminas-api-tools

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/samsonasik-zf-oauth2-doctrine/health.svg)

```
[![Health](https://phpackages.com/badges/samsonasik-zf-oauth2-doctrine/health.svg)](https://phpackages.com/packages/samsonasik-zf-oauth2-doctrine)
```

###  Alternatives

[doctrine/doctrine-orm-module

Laminas Module that provides Doctrine ORM functionality

4407.3M293](/packages/doctrine-doctrine-orm-module)[doctrine/doctrine-mongo-odm-module

Laminas Module which provides Doctrine MongoDB ODM functionality

86676.6k35](/packages/doctrine-doctrine-mongo-odm-module)

PHPackages © 2026

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