composer create-project zamoroka/magento-dependency-graph
- get graphviz:
- MacOS:
brew install graphviz
- Ubuntu:
sudo apt install graphviz
- MacOS:
- install OmnigGaffle to view and edit .dot files (optional)
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