PHPackages                             dvsa/mot-doctrine-module - 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. dvsa/mot-doctrine-module

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

dvsa/mot-doctrine-module
========================

DVSA Doctrine Module

v3.0.0(1y ago)09.3k1[1 PRs](https://github.com/dvsa/mot-doctrine-module/pulls)MITPHPPHP ^8.2

Since Jun 2Pushed 1y ago6 watchersCompare

[ Source](https://github.com/dvsa/mot-doctrine-module)[ Packagist](https://packagist.org/packages/dvsa/mot-doctrine-module)[ RSS](/packages/dvsa-mot-doctrine-module/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (10)Versions (16)Used By (0)

DVSA Doctrine Module
====================

[](#dvsa-doctrine-module)

This module provides additional doctrine tools and configurations for doctrine (including doctrine/cache, DoctrineModule and DoctrineORMModule).

Installing
----------

[](#installing)

The recommended way to install is through [Composer](https://getcomposer.org/).

```
composer require dvsa/mot-doctrine-module

```

Cache
-----

[](#cache)

### Cache service alias

[](#cache-service-alias)

A service factory is provided for the `Doctrine\Common\Cache\Cache` service:

```
use Doctrine\Common\Cache\Cache;

$cache = $serviceLocator->get(Cache::class);

```

The service acts as an alias to a specific implementation, which needs to be configured:

```
return [
    'cache' => [
        'instance' => 'doctrine.cache.memcached'
    ]
]

```

In this case the `doctrine.cache.memcached` is the service name that will be used.

### Memcache

[](#memcache)

A service factory is provided for the `doctrine.cache.memcache` service, which doctrine expects if **memcache** driver is chosen for caching.

It can be configured with the following details (these are defaults):

```
return [
    'cache' => [
        'memcache' => [
            'servers' => [
                [
                    'host' => 'localhost',
                    'port' => 11211,
                    'persistent' => true,
                    'weight' => 1
                ],
            ],
        ],
    ],
]

```

### Memcached

[](#memcached)

A service factory is provided for the `doctrine.cache.memcached` service, which doctrine expects if **memcached** driver is chosen for caching.

It can be configured with the following details (these are defaults):

```
return [
    'cache' => [
        'memcached' => [
            'servers' => [
                [
                    'host' => 'localhost',
                    'port' => 11211,
                ],
            ],
            'options' => [
                \Memcached::OPT_HASH => \Memcached::HASH_DEFAULT,
            ],
            'persistent_id' => 'MOT',
        ],
    ],
]

```

All the parameters accepted by [Memcached::addServers](http://php.net/manual/en/memcached.addservers.php)and [Memcached::setOptions](http://php.net/manual/en/memcached.setoptions.php) are accepted. The order in servers is significant (keys are ignored).

By default the Memcached instances are destroyed at the end of the request. To create an instance that persists between requests, use `persistent_id` to specify a unique ID for the instance. All instances created with the same `persistent_id`will share the same connection. To disable persistence set `persistent_id` to `null` (it's enabled by default).

**Warning**: Memcached won't complain if it cannot connect to the server. Application will simply not cache if wrong parameters were given in the configuration.

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

[](#contributing)

Please refer to our [Contribution Guide](/CONTRIBUTING.md).

###  Health Score

36

—

LowBetter than 81% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~99 days

Total

6

Last Release

670d ago

Major Versions

v1.0.3 → v2.0.02023-10-13

v2.0.0 → v3.0.02024-07-08

PHP version history (3 changes)v1.0.0PHP ^8.0

v2.0.0PHP ^8.1

v3.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/6ac141ec696a70dbc4b8c1c7541cd1bfc06e99617f2484d7631ed43cb48d2f6b?d=identicon)[dvsa](/maintainers/dvsa)

---

Top Contributors

[![jenniferchoo](https://avatars.githubusercontent.com/u/184102919?v=4)](https://github.com/jenniferchoo "jenniferchoo (6 commits)")[![jennifer-choo](https://avatars.githubusercontent.com/u/113026728?v=4)](https://github.com/jennifer-choo "jennifer-choo (5 commits)")[![sdh100shaun](https://avatars.githubusercontent.com/u/79883?v=4)](https://github.com/sdh100shaun "sdh100shaun (2 commits)")[![aaronlong](https://avatars.githubusercontent.com/u/5321346?v=4)](https://github.com/aaronlong "aaronlong (1 commits)")[![alexisc-kainos](https://avatars.githubusercontent.com/u/74315644?v=4)](https://github.com/alexisc-kainos "alexisc-kainos (1 commits)")[![mateuszc-kainos](https://avatars.githubusercontent.com/u/20680998?v=4)](https://github.com/mateuszc-kainos "mateuszc-kainos (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/dvsa-mot-doctrine-module/health.svg)

```
[![Health](https://phpackages.com/badges/dvsa-mot-doctrine-module/health.svg)](https://phpackages.com/packages/dvsa-mot-doctrine-module)
```

###  Alternatives

[kreait/laravel-firebase

A Laravel package for the Firebase PHP Admin SDK

1.3k16.5M42](/packages/kreait-laravel-firebase)[laravel-doctrine/orm

An integration library for Laravel and Doctrine ORM

8425.3M87](/packages/laravel-doctrine-orm)[doctrine/doctrine-module

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

3957.9M115](/packages/doctrine-doctrine-module)[kreait/firebase-bundle

Symfony Bundle for the Firebase Admin SDK

1534.7M2](/packages/kreait-firebase-bundle)[doctrine/phpcr-bundle

Symfony DoctrinePHPCRBundle

1602.6M41](/packages/doctrine-phpcr-bundle)[doctrine/doctrine-mongo-odm-module

Laminas Module which provides Doctrine MongoDB ODM functionality

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

PHPackages © 2026

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