PHPackages                             michalkvasnicak/oauth2-server-mongodb-bundle - 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. michalkvasnicak/oauth2-server-mongodb-bundle

ActiveSymfony-bundle[Authentication &amp; Authorization](/categories/authentication)

michalkvasnicak/oauth2-server-mongodb-bundle
============================================

MongoDB model layer for OAuth 2.0 server bundle

182PHP

Since Oct 27Pushed 11y ago1 watchersCompare

[ Source](https://github.com/michalkvasnicak/oauth2-server-mongodb-bundle)[ Packagist](https://packagist.org/packages/michalkvasnicak/oauth2-server-mongodb-bundle)[ RSS](/packages/michalkvasnicak-oauth2-server-mongodb-bundle/feed)WikiDiscussions develop Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

OAuth 2.0 Server MongoDB bundle
===============================

[](#oauth-20-server-mongodb-bundle)

Model layer for OAuth 2.0 server bundle for Symfony 2 framework.

- Develop: [![Build Status](https://camo.githubusercontent.com/e5e28bb172fdab863fae01d86d51af26a4d6f5f029597724200a936f9ef049c1/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6d696368616c6b7661736e6963616b2f6f61757468322d7365727665722d6d6f6e676f64622d62756e646c652e706e673f6272616e63683d646576656c6f70)](http://travis-ci.org/michalkvasnicak/oauth2-server-mongodb-bundle)
- Master: [![Build Status](https://camo.githubusercontent.com/d3b0b7edcd7b64efb8dbe04268ccba7b0dfb9b8f0a489f5dc20de95087b9b4c5/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6d696368616c6b7661736e6963616b2f6f61757468322d7365727665722d6d6f6e676f64622d62756e646c652e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/michalkvasnicak/oauth2-server-mongodb-bundle)
- [![Coverage Status](https://camo.githubusercontent.com/af5832ea20ca6999e4191a352162e4451f39f0924bf2cab1f5a389aae660817d/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f6d696368616c6b7661736e6963616b2f6f61757468322d7365727665722d6d6f6e676f64622d62756e646c652e737667)](https://coveralls.io/r/michalkvasnicak/oauth2-server-mongodb-bundle?branch=develop)
- [![Gittip](https://camo.githubusercontent.com/ae68e925bd826b24f09901df25d0d2d1b276f1cbf52f81bb6016157024a40ecb/687474703a2f2f696d672e736869656c64732e696f2f6769747469702f6d696368616c6b7661736e6963616b2e737667)](https://www.gittip.com/michalkvasnicak)
- [![Flattr this git repo](https://camo.githubusercontent.com/7e3f46a36526479d701ef7f90a0f8c3ac2fbab3087446e2a9fceed75cd1ab802/687474703a2f2f6170692e666c617474722e636f6d2f627574746f6e2f666c617474722d62616467652d6c617267652e706e67)](https://flattr.com/submit/auto?user_id=kvasnicak.michal&url=https://github.com/michalkvasnicak/oauth2-server-mongodb-bundle&title=michalkvasnicak/oauth2-server-mongodb-bundle&language=php&tags=github&category=software)

Requirements
------------

[](#requirements)

- PHP &gt;= 5.4
- doctrine/mongodb-odm-bundle: ~3.0
- symfony/security-bundle: &gt;= ~2.5
- michalkvasnicak/oauth2-server-bundle: dev-develop

Installation
------------

[](#installation)

Using composer

```
{
    "require": {
        "michalkvasnicak/oauth2-server-mongodb-bundle": "dev-develop"
    }
}
```

Configuration
-------------

[](#configuration)

### Default Doctrine ODM Documents

[](#default-doctrine-odm-documents)

To use default documents from this bundle just enable bundle in `AppKernel.php`.

### Custom Doctrine ODM Documents

[](#custom-doctrine-odm-documents)

If you want to create your own documents then create documents that are extending abstract classes from this bundle and configure this bundle.

```
o_auth2_server_mongodb:
    document_classes:
        access_token: 'FQN of Access Token Doctrine ODM document'
        authorization_code: 'FQN of Authorization code Doctrine ODM document'
        client: 'FQN of Client Doctrine ODM document'
        refresh_token: 'FQN of Refresh Token Doctrine ODM document'
        user: 'FQN of User Doctrine ODM document'

    repository_classes:
        access_token: 'FQN of Access Token Doctrine ODM document repository'
        authorization_code: 'FQN of Authorization code Doctrine ODM document repository'
        client: 'FQN of Client Doctrine ODM document repository'
        refresh_token: 'FQN of Refresh Token Doctrine ODM document repository'
        user: 'FQN of User Doctrine ODM document repository'

    # scope document and repository is not defined because it is used only by other documents
    # but Scope has to implement OAuth2\Storage\IScope interface!
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/b6524571fe5ad1db922e5a438a279a01e04fe3f727fb17070ae59e51664b7925?d=identicon)[michalkvasnicak](/maintainers/michalkvasnicak)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/michalkvasnicak-oauth2-server-mongodb-bundle/health.svg)

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

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

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

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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