PHPackages                             bushbaby/zf-oauth2-doctrine-mutatetablenames - 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. bushbaby/zf-oauth2-doctrine-mutatetablenames

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

bushbaby/zf-oauth2-doctrine-mutatetablenames
============================================

Module for Laminas API Tools's Doctrine OAuth2 Server Adapter so table names can be configured

2.0.0(4y ago)269.1k↓100%61BSD-3-ClausePHPPHP ^7.3 || ~8.0

Since May 12Pushed 4y ago3 watchersCompare

[ Source](https://github.com/basz/zf-oauth2-doctrine-mutatetablenames)[ Packagist](https://packagist.org/packages/bushbaby/zf-oauth2-doctrine-mutatetablenames)[ RSS](/packages/bushbaby-zf-oauth2-doctrine-mutatetablenames/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (11)Used By (1)

Mutate tablename for Apigility/Laminas API Tools OAuth2 Doctrine Adapter
========================================================================

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

About
-----

[](#about)

> ^2.0 This module allows to configure the tables that the [OAuth2 Doctrine Adapter](https://github.com/API-Skeletons/oauth2-doctrine) for [Laminas API Tools](https://api-tools.getlaminas.org/) generates.

> ^1.0 This module allows to configure the tables that the [Fork OAuth2 Doctrine Adapter](https://github.com/samsonasik/zf-oauth2-doctrine) for [Laminas API Tools](https://api-tools.getlaminas.org/) generates.

> ^0.0 This module allows to configure the tables that the [OAuth2 Doctrine Adapter](https://github.com/api-skeletons/zf-oauth2-doctrine) for [Apigility](https://apigility.org) generates.

[![Latest Stable Version](https://camo.githubusercontent.com/aa68ebc55582f34d0ce38e9c2598b5b0548c7722cf61966bdeddf030945b3192/68747470733a2f2f706f7365722e707567782e6f72672f62757368626162792f7a662d6f61757468322d646f637472696e652d6d75746174657461626c656e616d65732f762f737461626c65)](https://packagist.org/packages/bushbaby/zf-oauth2-doctrine-mutatetablenames)[![Total Downloads](https://camo.githubusercontent.com/c46503f753c2456947ad5016512eaf9449580d1b0ab3b44fd050e5b143dcd253/68747470733a2f2f706f7365722e707567782e6f72672f62757368626162792f7a662d6f61757468322d646f637472696e652d6d75746174657461626c656e616d65732f646f776e6c6f616473)](https://packagist.org/packages/bushbaby/zf-oauth2-doctrine-mutatetablenames)[![Latest Unstable Version](https://camo.githubusercontent.com/63277e5aebb7df7a1fcc40faaacf3034ce8ccb297a42c072ba083ac711554b86/68747470733a2f2f706f7365722e707567782e6f72672f62757368626162792f7a662d6f61757468322d646f637472696e652d6d75746174657461626c656e616d65732f762f756e737461626c65)](https://packagist.org/packages/bushbaby/zf-oauth2-doctrine-mutatetablenames)[![Coverage Status](https://camo.githubusercontent.com/624c9ba91f8c9953210df773fd5cb5d8f780da33a899fe283288f7e5a9b424eb/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6261737a2f7a662d6f61757468322d646f637472696e652d6d75746174657461626c656e616d65732f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/basz/zf-oauth2-doctrine-mutatetablenames?branch=master)[![License](https://camo.githubusercontent.com/2648c5832ab44f1d8266ae21723a6df4a38de153b3c045cdff3510aaf7ac57cb/68747470733a2f2f706f7365722e707567782e6f72672f62757368626162792f7a662d6f61757468322d646f637472696e652d6d75746174657461626c656e616d65732f6c6963656e7365)](https://packagist.org/packages/bushbaby/zf-oauth2-doctrine-mutatetablenames)

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

[](#installation)

Installation of this module uses composer. For composer documentation, please refer to [getcomposer.org](http://getcomposer.org/).

```
$ composer require bushbaby/zf-oauth2-doctrine-mutatetablenames
```

Add this module to your application's configuration:

```
'modules' => array(
   ...
   'ZF\OAuth2\Doctrine\MutateTableNames',
),
```

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

[](#configuration)

Copy `config/oauth2.doctrine-orm.mutatetablenames.global.php.dist` to your autoload directory and rename to `oauth2.doctrine-orm.mutatetablenames.global.php`

Edit the appropriate values to customize table names. This module considers the usage of the configured doctrine event manager.

Migration
---------

[](#migration)

You should be able to review the changes with the following command

```
php public/index.php orm:schema-tool:update --dump-sql

```

When satisfied run this command to actually modify your database

```
php public/index.php orm:schema-tool:update --force

```

Now you should manually copy the relevant information to the new tables. Old tables are not removed unless you specify the '--complete' flag.

*WARNING: Will find any difference between the doctrine managed entities and the schema found in the database, not just the ones regarding the table name changes!*

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 65.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 ~275 days

Recently: every ~484 days

Total

10

Last Release

1543d ago

Major Versions

0.5.1 → 1.0.02021-01-17

1.0.0 → 2.0.02022-02-20

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

0.3.0PHP &gt;=5.5

0.4.0PHP ^5.5 || ^7.0

1.0.0PHP ^7.3 || ~8.0

### Community

Maintainers

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

---

Top Contributors

[![basz](https://avatars.githubusercontent.com/u/143068?v=4)](https://github.com/basz "basz (48 commits)")[![samsonasik](https://avatars.githubusercontent.com/u/459648?v=4)](https://github.com/samsonasik "samsonasik (15 commits)")[![gulerGTS](https://avatars.githubusercontent.com/u/159452110?v=4)](https://github.com/gulerGTS "gulerGTS (3 commits)")[![sergiohermes](https://avatars.githubusercontent.com/u/1915564?v=4)](https://github.com/sergiohermes "sergiohermes (3 commits)")[![jguittard](https://avatars.githubusercontent.com/u/5320213?v=4)](https://github.com/jguittard "jguittard (1 commits)")[![i-xperts](https://avatars.githubusercontent.com/u/6347655?v=4)](https://github.com/i-xperts "i-xperts (1 commits)")[![anx-mr](https://avatars.githubusercontent.com/u/6470411?v=4)](https://github.com/anx-mr "anx-mr (1 commits)")[![renatopeterman](https://avatars.githubusercontent.com/u/2411367?v=4)](https://github.com/renatopeterman "renatopeterman (1 commits)")

---

Tags

doctrineoauth2laminas-api-tools

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[doctrine/doctrine-orm-module

Laminas Module that provides Doctrine ORM functionality

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

Laminas Module that provides Doctrine basic functionality required for ORM and ODM modules

3957.9M116](/packages/doctrine-doctrine-module)[doctrine/doctrine-mongo-odm-module

Laminas Module which provides Doctrine MongoDB ODM functionality

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

Doctrine hydrators for Laminas applications

362.8M19](/packages/doctrine-doctrine-laminas-hydrator)[laminas-api-tools/api-tools-doctrine

Laminas API Tools Doctrine module

10633.9k5](/packages/laminas-api-tools-api-tools-doctrine)

PHPackages © 2026

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