Skip to content

zamoroka/magento-dependency-graph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generate dependency graph for Magento modules

install

  • composer create-project zamoroka/magento-dependency-graph
  • get graphviz:
    • MacOS: brew install graphviz
    • Ubuntu: sudo apt install graphviz
  • install OmnigGaffle to view and edit .dot files (optional)

usage

  • cd magento-dependency-graph
  • sh getDependencyGraph.sh "path-to-the-magento-2-folder" "ModuleVendor" to generate .dot, .pdf and .svg files.
  • view files in "export" folder

example of generated dependency graph

example

legend

  • orange text - module is in app/code directory
  • green text - module is in vendor directory
  • red text - module is not exists
  • blue block - module is independent
  • red arrow - two modules are dependent on each other