zamoroka/magento-dependency-graph

Generate dependency graph for Magento modules

1.1.0 2021-02-08 20:21 UTC

This package is auto-updated.

Last update: 2024-04-14 12:40:07 UTC


README

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