tbn / doctrinerelationvisualizer-bundle
Visualize the entity relation of doctrine entities
Installs: 9 318
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 3
Forks: 3
Open Issues: 2
Language:JavaScript
Requires
- php: ^8.1
- doctrine/annotations: ^2.0
- doctrine/doctrine-bundle: ^2.10
- doctrine/orm: ^2.4
- symfony/framework-bundle: ^5.4|^6.0|^7.0
- symfony/property-access: ^5.4|^6.0|^7.0
- symfony/serializer: ^5.4|^6.0|^7.0
Requires (Dev)
- nyholm/symfony-bundle-test: ^2.0
- phpunit/phpunit: ^10.3
- symfony/class-loader: 2.3.*
This package is auto-updated.
Last update: 2024-12-05 15:21:27 UTC
README
This bundle allows to visualize the relation between doctrine entities.
The diagram is always in sync with the application entities.
Installation
composer require --dev "tbn/doctrinerelationvisualizer-bundle"
Publish assets
php app/console assets:install
Enable the bundle in the AppKernel for the dev environment
Add the bundle to config/bundles.php
return [
...
tbn\DoctrineRelationVisualizerBundle\DoctrineRelationVisualizerBundle::class => ['dev' => true],
...
];
Add routing
Add the file config/routes/dev/visualizer.yaml
tbn_doctrine_relation_visualizer:
resource: "@DoctrineRelationVisualizerBundle/Resources/config/routing.yml"
Customize bundle (optionnal)
Add the file config/packages/dev/doctrine_relation_visualizer.yaml
doctrine_relation_visualizer:
position_filepath: '%kernel.project_dir%/config'
display_columns: true
area_width: 4000
area_height: 3000
Usage
Go to the url:
http://your_app/_visualizer
Sort your entities to have a correct diagram