PHPackages                             dboho/oauth2-server-pdo - 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. dboho/oauth2-server-pdo

ActiveLibrary

dboho/oauth2-server-pdo
=======================

Implementation of thephpleague oauth2 server storage interfaces for PDO storage

v0.7.5(1y ago)11662MITPHPPHP ~5.6 || ~7.0CI failing

Since Jun 4Pushed 1y ago1 watchersCompare

[ Source](https://github.com/DavidWiesner/oauth2-server-pdo)[ Packagist](https://packagist.org/packages/dboho/oauth2-server-pdo)[ RSS](/packages/dboho-oauth2-server-pdo/feed)WikiDiscussions master Synced 2mo ago

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

PDO Storage for thephpleague oauth2 server
==========================================

[](#pdo-storage-for-thephpleague-oauth2-server)

[![Travis branch](https://camo.githubusercontent.com/7839a2a8ebd1ec316213a8af98b2b0cd0fffc4317a43f89a7b77609fa6ca7394/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f4461766964576965736e65722f6f61757468322d7365727665722d70646f2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/DavidWiesner/oauth2-server-pdo) [![Codecov](https://camo.githubusercontent.com/9ad67f366b31e3d255693067fbbf802a0a92eef873f22f6c5bdab8ae370f71ea/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f4461766964576965736e65722f6f61757468322d7365727665722d70646f2e7376673f7374796c653d666c61742d737175617265)](https://codecov.io/github/DavidWiesner/oauth2-server-pdo?branch=master) [![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)

This is an Implentation of the [thephpleague/oauth2-server](https://github.com/thephpleague/oauth2-server/)storage interfaces for PDO Storage.

Usage
-----

[](#usage)

```
$pdo = new PDO('sqlite:oauth2.db');

$sessionStorage = new SessionStorage($pdo);
$accessTokenStorage = new AccessTokenStorage($pdo);
$clientStorage = new ClientStorage($pdo);
$scopeStorage = new ScopeStorage($pdo);

$server = new ResourceServer(
    $sessionStorage,
    $accessTokenStorage,
    $clientStorage,
    $scopeStorage
);
//…
```

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

[](#installation)

The recommended installation method is via [Composer](https://getcomposer.org/).

In your project root just run:

```
$ composer require dboho/oauth2-server-pdo
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity46

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 ~946 days

Total

3

Last Release

642d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/199908011217eac9c70d6f52f5417ea2ca132651a6e1db0dc798f926c6d4bb08?d=identicon)[dBoho](/maintainers/dBoho)

---

Top Contributors

[![DavidWiesner](https://avatars.githubusercontent.com/u/243115?v=4)](https://github.com/DavidWiesner "DavidWiesner (6 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[laravel/passport

Laravel Passport provides OAuth2 server support to Laravel.

3.4k85.0M531](/packages/laravel-passport)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[steverhoades/oauth2-openid-connect-server

An OpenID Connect Server that sites on The PHP League's OAuth2 Server

2097.8M12](/packages/steverhoades-oauth2-openid-connect-server)[league/oauth2-server-bundle

Symfony bundle .

2344.7M6](/packages/league-oauth2-server-bundle)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

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