jeremyt / symfony-diagram-generator
Generate architecture diagrams from Symfony applications.
Package info
github.com/JeremyT2002/Symfony-Diagram-Generator
Type:symfony-bundle
pkg:composer/jeremyt/symfony-diagram-generator
v0.1.0
2026-04-28 18:54 UTC
Requires
- php: ^8.2
- doctrine/orm: ^2.17 || ^3.0
- doctrine/persistence: ^3.3
- symfony/config: ^6.4 || ^7.0
- symfony/console: ^6.4 || ^7.0
- symfony/dependency-injection: ^6.4 || ^7.0
- symfony/event-dispatcher: ^6.4 || ^7.0
- symfony/filesystem: ^6.4 || ^7.0
- symfony/framework-bundle: ^6.4 || ^7.0
- symfony/routing: ^6.4 || ^7.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.65
- phpstan/phpstan: ^1.12
- phpstan/phpstan-phpunit: ^1.4
- phpstan/phpstan-symfony: ^1.4
- phpunit/phpunit: ^10.5 || ^11.0
- symfony/phpunit-bridge: ^6.4 || ^7.0
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.