PHPackages                             bitexpert/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. [Database &amp; ORM](/categories/database)
4. /
5. bitexpert/oauth2-server-storage-dbal

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

bitexpert/oauth2-server-storage-dbal
====================================

Doctrine Dbal Storage for OAuth2 server

0.1.2(10y ago)1573Apache-2.0PHPPHP ^5.5|^7.0

Since Feb 13Pushed 10y ago2 watchersCompare

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

READMEChangelogDependencies (8)Versions (5)Used By (0)

bitexpert/oauth2-server-storage-dbal
====================================

[](#bitexpertoauth2-server-storage-dbal)

This package provides Dbal storage implementations for [PHP OAuth 2.0 Server](https://github.com/thephpleague/oauth2-server).

[![Build Status](https://camo.githubusercontent.com/5714c960c5f4f0d51665c4c3dcaebfb5890114a29ca0b59dea21f0ea2be0e023/68747470733a2f2f7472617669732d63692e6f72672f6269744578706572742f6f61757468322d7365727665722d73746f726167652d6462616c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/bitExpert/oauth2-server-storage-dbal)[![Dependency Status](https://camo.githubusercontent.com/f94bc4b1369967ab376da069f099b9de5afd9c3e0aaf8f95c0dc6a3e5b0c2770/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3537353238633131373735376130303034316233613238302f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/user/projects/57528c117757a00041b3a280)

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

[](#installation)

The preferred way of installing `bitexpert/oauth2-server-storage-dbal` is through Composer. Simply add `bitexpert/oauth2-server-storage-dbal` as a dependency:

```
composer.phar require bitexpert/oauth2-server-storage-dbal

```

Usage
-----

[](#usage)

Either create a \\Doctrine\\DBAL\\Connection instance yourself or grab it from the \\Doctrine\\ORM\\EntityManager in case you are using Doctrine ORM:

```
/** @var \Doctrine\ORM\EntityManager $entityManager */
$entityManager = ...
$connection = $entityManager->getConnection();

```

Pass the $connection instance to the \*Storage implementations and register those with the \\League\\OAuth2\\Server\\AuthorizationServer instance:

```
$server = new \League\OAuth2\Server\AuthorizationServer();
$server->setSessionStorage(new \bitExpert\\OAuth2\Server\Storage\Dbal\SessionStorage($connection));
$server->setAccessTokenStorage(new \bitExpert\OAuth2\Server\Storage\Dbal\AccessTokenStorage($connection));
$server->setClientStorage(new \bitExpert\OAuth2\Server\Storage\Dbal\ClientStorage($connection));
$server->setScopeStorage(new \bitExpert\OAuth2\Server\Storage\Dbal\ScopeStorage($connection));

```

The required database schema can be found in scripts/setup.php.

License
-------

[](#license)

OAuth2-Server-Storage-Dbal is released under the Apache 2.0 license.

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity51

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

Every ~6 days

Total

3

Last Release

3777d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1adf0ab660536efce10aeb97f0c90ec881110b64fbd23429fa945190df0def56?d=identicon)[shochdoerfer](/maintainers/shochdoerfer)

---

Top Contributors

[![shochdoerfer](https://avatars.githubusercontent.com/u/596449?v=4)](https://github.com/shochdoerfer "shochdoerfer (14 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[martin-georgiev/postgresql-for-doctrine

Extends Doctrine with native PostgreSQL support for arrays, JSONB, ranges, PostGIS geometries, text search, ltree, uuid, and 100+ PostgreSQL-specific functions.

4535.7M4](/packages/martin-georgiev-postgresql-for-doctrine)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M526](/packages/shopware-core)[flow-php/doctrine-dbal-bulk

Bulk inserts and updates for Doctrine DBAL

14361.1k3](/packages/flow-php-doctrine-dbal-bulk)[concrete5/core

Concrete – an open source content management system.

20163.8k49](/packages/concrete5-core)[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)
