PHPackages                             alexandresalome/doctrine-extra-bundle - 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. alexandresalome/doctrine-extra-bundle

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

alexandresalome/doctrine-extra-bundle
=====================================

Extra features for Doctrine, as a Symfony bundle

v0.3.4(6y ago)49270.3k↓50%15[1 issues](https://github.com/alexandresalome/doctrine-extra-bundle/issues)[1 PRs](https://github.com/alexandresalome/doctrine-extra-bundle/pulls)1MITPHP

Since Oct 16Pushed 4y ago6 watchersCompare

[ Source](https://github.com/alexandresalome/doctrine-extra-bundle)[ Packagist](https://packagist.org/packages/alexandresalome/doctrine-extra-bundle)[ RSS](/packages/alexandresalome-doctrine-extra-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (3)Versions (10)Used By (1)

DoctrineExtraBundle
===================

[](#doctrineextrabundle)

[![Build status](https://camo.githubusercontent.com/2e1fc4868bdbb9a9f883c112301e312c68dbc9e3ed4f102f6c138235e92cbb95/68747470733a2f2f7472617669732d63692e6f72672f616c6578616e64726573616c6f6d652f646f637472696e652d65787472612d62756e646c652e706e673f6272616e63683d6d6173746572)](https://camo.githubusercontent.com/2e1fc4868bdbb9a9f883c112301e312c68dbc9e3ed4f102f6c138235e92cbb95/68747470733a2f2f7472617669732d63692e6f72672f616c6578616e64726573616c6f6d652f646f637472696e652d65787472612d62756e646c652e706e673f6272616e63683d6d6173746572) [![Latest Stable Version](https://camo.githubusercontent.com/dbcdcc49381253f14ef994624c7f38b14a6fa51cfc862330adbaa780a8180a8c/68747470733a2f2f706f7365722e707567782e6f72672f616c6578616e64726573616c6f6d652f646f637472696e652d65787472612d62756e646c652f762f737461626c65)](https://packagist.org/packages/alexandresalome/doctrine-extra-bundle) [![Total Downloads](https://camo.githubusercontent.com/5696a356fd4f44e3f117fa5a3c05a7c2db64ee7f4020ff67bd0830581544e7bf/68747470733a2f2f706f7365722e707567782e6f72672f616c6578616e64726573616c6f6d652f646f637472696e652d65787472612d62756e646c652f646f776e6c6f616473)](https://packagist.org/packages/alexandresalome/doctrine-extra-bundle) [![License](https://camo.githubusercontent.com/795d3c2d69066db6908c242bcd8d0950ecec4b723a1b0975d94340bca05f6083/68747470733a2f2f706f7365722e707567782e6f72672f616c6578616e64726573616c6f6d652f646f637472696e652d65787472612d62756e646c652f6c6963656e7365)](https://packagist.org/packages/alexandresalome/doctrine-extra-bundle) [![Monthly Downloads](https://camo.githubusercontent.com/0c6cd84a3c7150e891e427f3f387aff674588926c4a5d1653df67552e4de2794/68747470733a2f2f706f7365722e707567782e6f72672f616c6578616e64726573616c6f6d652f646f637472696e652d65787472612d62756e646c652f642f6d6f6e74686c79)](https://packagist.org/packages/alexandresalome/doctrine-extra-bundle) [![Daily Downloads](https://camo.githubusercontent.com/dda6860d1ac43526ef4dd033654a5236c38f5396204983cb65748fbd52d365dd/68747470733a2f2f706f7365722e707567782e6f72672f616c6578616e64726573616c6f6d652f646f637472696e652d65787472612d62756e646c652f642f6461696c79)](https://packagist.org/packages/alexandresalome/doctrine-extra-bundle)

Graph tool for Doctrine. Relies on [Graphviz](http://www.graphviz.org/).

- [View CHANGELOG](CHANGELOG.md)
- [View CONTRIBUTORS](CONTRIBUTORS.md)

[![Demo](Resources/demo.png)](Resources/demo.png)

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

[](#installation)

Install the latest version with

```
composer require --dev alexandresalome/doctrine-extra-bundle
```

Then, enable the bundle by adding the following line in the `app/AppKernel.php`file of your project:

```
// app/AppKernel.php

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        //...
        if (in_array($this->getEnvironment(), ['dev', 'test'])) {
            // ...
            // Because the vendor code could be not present, you should check if the bundle is here before using it.
            $bundles[] = new Alex\DoctrineExtraBundle\AlexDoctrineExtraBundle();
        }

        // ...
    }

    // ...
}
```

Usage
-----

[](#usage)

### Dump entity manager schema as graph

[](#dump-entity-manager-schema-as-graph)

```
php app/console doctrine:mapping:graphviz
```

If you want to create a PDF file out of it, with Linux:

.. code-block:: bash

```
php app/console doctrine:mapping:graphviz | dot -Tpdf -oout.pdf
xdg-open out.pdf

```

Development
-----------

[](#development)

### Generate sample graphs

[](#generate-sample-graphs)

A set of sample entities are available to test internally the schema generations. You can generate the graph for any of the samples (located in Tests/Fixtures) by running:

```
./Resources/bin/graph Simple | dot -Tpdf -oout.pdf
xdg-open out.pdf
```

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity42

Moderate usage in the ecosystem

Community23

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor3

3 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 ~298 days

Recently: every ~346 days

Total

9

Last Release

2205d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2c6be58ec4620ddbcc6f95bf7353365dc7ff796c004c70369333aee6125eb309?d=identicon)[alexandresalome](/maintainers/alexandresalome)

---

Top Contributors

[![gisostallenberg](https://avatars.githubusercontent.com/u/11526270?v=4)](https://github.com/gisostallenberg "gisostallenberg (5 commits)")[![OskarStark](https://avatars.githubusercontent.com/u/995707?v=4)](https://github.com/OskarStark "OskarStark (3 commits)")[![alexandresalome](https://avatars.githubusercontent.com/u/134144?v=4)](https://github.com/alexandresalome "alexandresalome (3 commits)")[![rjmunro](https://avatars.githubusercontent.com/u/108641?v=4)](https://github.com/rjmunro "rjmunro (3 commits)")[![nud](https://avatars.githubusercontent.com/u/10519?v=4)](https://github.com/nud "nud (2 commits)")[![pborreli](https://avatars.githubusercontent.com/u/77759?v=4)](https://github.com/pborreli "pborreli (1 commits)")[![theofidry](https://avatars.githubusercontent.com/u/5175937?v=4)](https://github.com/theofidry "theofidry (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/alexandresalome-doctrine-extra-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/alexandresalome-doctrine-extra-bundle/health.svg)](https://phpackages.com/packages/alexandresalome-doctrine-extra-bundle)
```

###  Alternatives

[scienta/doctrine-json-functions

A set of extensions to Doctrine that add support for json query functions.

58523.9M36](/packages/scienta-doctrine-json-functions)[damienharper/auditor-bundle

Integrate auditor library in your Symfony projects.

4542.8M](/packages/damienharper-auditor-bundle)[sonata-project/entity-audit-bundle

Audit for Doctrine Entities

644989.8k1](/packages/sonata-project-entity-audit-bundle)[pixelfederation/doctrine-resettable-em-bundle

Symfony bundle for decorating default entity managers using a resettable decorator.

20113.5k](/packages/pixelfederation-doctrine-resettable-em-bundle)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1022.4k](/packages/rcsofttech-audit-trail-bundle)[ahmed-bhs/doctrine-doctor

Runtime analysis tool for Doctrine ORM integrated into Symfony Web Profiler. Unlike static linters, it analyzes actual query execution at runtime to detect performance bottlenecks, security vulnerabilities, and best practice violations during development with real execution context and data.

813.1k](/packages/ahmed-bhs-doctrine-doctor)

PHPackages © 2026

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