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 yesterday

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

35

—

LowBetter than 77% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity65

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

725d 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

[symfony/framework-bundle

Provides a tight integration between Symfony components and the Symfony full-stack framework

3.6k251.7M11.6k](/packages/symfony-framework-bundle)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M386](/packages/easycorp-easyadmin-bundle)[prestashop/prestashop

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

9.1k17.8k](/packages/prestashop-prestashop)[getgrav/grav

Modern, Crazy Fast, Ridiculously Easy and Amazingly Powerful Flat-File CMS

15.6k86.4k1](/packages/getgrav-grav)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[leantime/leantime

Open source project management system for non-project managers. Simple like Trello, powerful like Jira. Built with neurodiversity in mind.

10.2k3.5k](/packages/leantime-leantime)

PHPackages © 2026

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