Search by

jawira / doctrine-diagram-bundle

jawira

📐 Symfony Bundle to generate database diagrams

Package info

github.com/jawira/doctrine-diagram-bundle

Documentation

Type:symfony-bundle

pkg:composer/jawira/doctrine-diagram-bundle

Statistics

Installs: 139 139

Dependents: 2

Suggesters: 0

Stars: 83

Open Issues: 7

v2.0.1 2026-10-21 08:28 UTC

README

Generate Entity-Relationship and UML class diagrams from a Symfony application's Doctrine schema.

Latest Stable Version Total Downloads PHP Version Require License

Use the bundle to inspect the current database schema and Doctrine entities. It generates diagrams for monitoring and visualization.

Features

  • Generate ER diagrams from a Doctrine DBAL connection and class diagrams from Doctrine entities.
  • Choose mini, midi, or maxi detail.
  • Export PlantUML source (puml) or render diagrams as svg and png.
  • Apply built-in PlantUML themes and filter tables or classes with include and exclude patterns.
  • Render locally with PlantUML or through a PlantUML server.

Installation

With Symfony Flex, enable community recipes (once per project) and require the bundle as a development dependency:

composer config extra.symfony.allow-contrib true
composer require jawira/doctrine-diagram-bundle --dev

Documentation

Read the documentation: https://jawira.github.io/doctrine-diagram-bundle/.

Generate diagrams

# Entity-Relationship diagram
bin/console doctrine:diagram:er

# UML class diagram
bin/console doctrine:diagram:class

By default, the commands write er.svg and class.svg to the project root. The default format is SVG. Use --format=puml to write PlantUML source without requiring a renderer, or --format=png for a PNG image.

Example Entity-Relationship diagram

Example UML class diagram

Contributing

License

This library is licensed under the MIT license.

Packages from jawira

jawira/plantuml GitHub stars
Provides PlantUML executable and plantuml.jar
more...