Download the PHP package nepoh/doctrine-yuml-bundle without Composer
On this page you can find all versions of the php package nepoh/doctrine-yuml-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package doctrine-yuml-bundle
doctrine-yuml-bundle
Bundle to visualise doctrine entities graph with yuml in Symfony4
This bundle is based on Marco Pivetta's work for zend doctrine ORM Module and zend developper tools
It uses the yuml.me api to display your project's objects mapping.
Installation
Symfony 4
Run the composer require onurb/doctrine-yuml-bundle
command in your console
Adjust your parameters to personalize the render in config/packages/dev/yuml.yaml, or use annotations as describe bellow
Adjust the route (if you want to add a prefix) in config/routes/dev/yuml.yaml
Symfony 3
symfony 3 is not supported since 1.1.6, if you didn't migrate to SF4 yet, use version 1.1.5
-
Add this bundle to your project as a composer dependency:
-
Declare the bundle in your application kernel:
- Add this route in your global routing_dev configuration (with optional prefix)
configure access to the yuml route (if you use security of course)
Use
Click on Doctrine icon added in the dev toolbar.
Run the yuml:mappings
console command to save the image locally.
Personalize the render
Full personalisation for mapping rendering, defining parameters or using Metadatagrapher annotations
define the output file extension
Use the parameter file :
Extensions allowed : jpg, png (default), svg, pdf, or json
define the yuml rendering style
Use the parameter file :
Styles allowed : plain (default), boring or scruffy
define the graph direction
Use the parameter file :
Directions allowed : LR (left to Right), RL (Right to Left), TB (Top to bottom => default).
define the graph scale
Use the parameter file :
Scales allowed : huge, big, normal (default), small or tiny.
Hide entities attributes properties (unique, type, length, ...)
Use the parameter file :
this parameter is set to true by default since v1.1
Warning : In Symfony 3, don't forget to also define parameter keys in parameters.yml.dist to avoid symfony update
to clear your parameters
Toggle attributes properties on a specific class using annotations
to show only desired classes details if global parameter is set to false :
And, if set to true (default), you can hide properties for a specific class :
Define colors for entities rendering
Define default color for a complete bundle or namespace by defining it in parameters.yml
You can also define colors for classes this way... but it is easier using annotations as described next
Complete list of yuml colors availables here
Define Entity color in graph using annotations
Display specific entity method
You can display specific methods in the graph, using annotations
Hide columns
Hide all columns of the entity
If you want, you can hide Entity attributes with annotations : using annotation on the class :
Hide specific column
Or hide a specific secret column you want to hide, using annotation on the Entity column : (it could be usefull to hide you credential logic, or to avoid the display recurrent fields, like created_at, or updated_at in the graph...)
Add notes to comment entities in the graph
use annotations :
Notes are yellow by default, but you can customize note's' color
All versions of doctrine-yuml-bundle with dependencies
doctrine/annotations Version 1.*
doctrine/common Version ~2.0
doctrine/orm Version ~2.0
onurb/doctrine-metadata-grapher Version ~1.0
symfony/config Version ~4.2
symfony/console Version ~3.0|~4.0
symfony/dependency-injection Version ~3.0|~4.0
symfony/framework-bundle Version ~3.0|~4.0
symfony/http-foundation Version ~3.0|~4.0
symfony/http-kernel Version ~3.0|~4.0
symfony/profiler-pack Version ~1.0
symfony/routing Version ~3.0|~4.0