jeremyt/symfony-diagram-generator

Generate architecture diagrams from Symfony applications.

Maintainers

Package info

github.com/JeremyT2002/Symfony-Diagram-Generator

Type:symfony-bundle

pkg:composer/jeremyt/symfony-diagram-generator

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.1.0 2026-04-28 18:54 UTC

This package is auto-updated.

Last update: 2026-04-28 19:00:25 UTC


README

Generate architecture diagrams from Symfony applications automatically.

Features

  • Entity Relationship Diagram (Doctrine ORM metadata)
  • Service dependency graph (planned)
  • Route map (planned)
  • Event flow (planned)
  • Bundle architecture (planned)
  • Messenger flow (planned)
  • Workflow/state machine diagrams (planned)

Requirements

  • PHP 8.2+
  • Symfony 6.4 or 7.x
  • Doctrine ORM 2.17+ or 3.x (for ERD generation)

Installation

composer require jeremyt/symfony-diagram-generator

Register the bundle in config/bundles.php if Symfony Flex does not do it automatically:

return [
    SymfonyDiagramBundle\Bundle\DiagramBundle::class => ['all' => true],
];

Configuration

Create config/packages/diagram.yaml:

diagram:
  default_renderer: mermaid
  output_dir: docs/diagrams

Usage

List available generators/renderers:

bin/console diagram:list

Generate ERD in Mermaid format:

bin/console diagram:generate erd --format=mermaid --output=docs/erd.mmd

Custom Generator

Implement SymfonyDiagramBundle\Generator\DiagramGeneratorInterface.

Development

composer install
composer test
composer stan
composer cs:check

License

MIT. See LICENSE.