PHPackages                             borisguery/oauth2-server-storage-dbal - 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. borisguery/oauth2-server-storage-dbal

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

borisguery/oauth2-server-storage-dbal
=====================================

0.1(10y ago)16MITPHP

Since Apr 4Pushed 10y ago1 watchersCompare

[ Source](https://github.com/borisguery/oauth2-server-storage-dbal)[ Packagist](https://packagist.org/packages/borisguery/oauth2-server-storage-dbal)[ RSS](/packages/borisguery-oauth2-server-storage-dbal/feed)WikiDiscussions master Synced yesterday

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

OAuth2 Server Storage DBAL (Doctrine)
=====================================

[](#oauth2-server-storage-dbal-doctrine)

[![Latest Version on Packagist](https://camo.githubusercontent.com/a08d9760d1ee92619f4519552d35f262c11bf4e832d9156a27fef3ef0c67d35b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f626f72697367756572792f6f61757468322d7365727665722d73746f726167652d6462616c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/borisguery/oauth2-server-storage-dbal)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/4ce9919177ef7886036979e7202d57b8193c734633a388814d8a4caff03ffe60/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f626f72697367756572792f6f61757468322d7365727665722d73746f726167652d6462616c2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/borisguery/oauth2-server-storage-dbal)[![Coverage Status](https://camo.githubusercontent.com/2010fddeed8f76d49d0675d8ba2119f87a979c8709b638c908f62f90d15bd060/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f626f72697367756572792f6f61757468322d7365727665722d73746f726167652d6462616c2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/borisguery/oauth2-server-storage-dbal/code-structure)[![Quality Score](https://camo.githubusercontent.com/0988817b2009de26fdb2d5d0797be2c823f72be76e7b4043cd016a60d86cd7ac/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f626f72697367756572792f6f61757468322d7365727665722d73746f726167652d6462616c2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/borisguery/oauth2-server-storage-dbal)[![Total Downloads](https://camo.githubusercontent.com/03ace9536352b08d82ec0abbf5928622475c77ae9634556bb4e52c2ef7941702/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f626f72697367756572792f6f61757468322d7365727665722d73746f726167652d6462616c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/borisguery/oauth2-server-storage-dbal)

OAuth2 Server Bundle for Symfony

Install
-------

[](#install)

Via Composer

```
$ composer require borisguery/oauth2-server-storage-dbal
```

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

[](#configuration)

Here are the keys to override if you wish to change the default table names.

```
$tableConfiguration = new TableConfiguration(
    [
            'oauth2_clients'        => 'oauth2_clients',
            'oauth2_access_tokens'  => 'oauth2_access_tokens',
            'oauth2_refresh_tokens' => 'oauth2_refresh_tokens',
    ]
);
```

Usage
-----

[](#usage)

```
$accessTokenStorage  = new DbalAccessTokenStorage($dbalConnection, $tableConfiguration);
$refreshTokenStorage = new DbalRefreshTokenStorage($dbalConnection, $tableConfiguration);
$clientStorage       = new DbalClientStorage($dbalConnection, $tableConfiguration);
```

that's it!

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Boris Guéry](https://github.com/borisguery)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3739d ago

### Community

Maintainers

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

---

Top Contributors

[![borisguery](https://avatars.githubusercontent.com/u/345495?v=4)](https://github.com/borisguery "borisguery (11 commits)")

### Embed Badge

![Health badge](/badges/borisguery-oauth2-server-storage-dbal/health.svg)

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

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.5M378](/packages/easycorp-easyadmin-bundle)[backpack/crud

Quickly build admin interfaces using Laravel, Bootstrap and JavaScript.

3.4k3.6M218](/packages/backpack-crud)[evoweb/sf-register

Frontend User Registration

14190.5k2](/packages/evoweb-sf-register)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1615.6k12](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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