mihaeu / dephpend

Detect flaws in your architecture, before they drag you down into the depths of dependency hell ...
https://dephpend.com
MIT License
530 stars 26 forks source link

Support GML output #41

Closed brightbyte closed 3 years ago

brightbyte commented 5 years ago

While the plain text output of dependencies is nice for processing with grep, it would be nice to have an output format that can be used directly with more powerful graph analysis frameworks, such as graph-tool. GML seems to be a good candidate, since it's human readable and easy to generate.

mihaeu commented 5 years ago

Very good idea and easy to implement as well. I'll make sure to add that on the new version. Probably not within the next two weeks though.

brightbyte commented 5 years ago

Excellent, thank you!

I'm looking into this for use in the MediaWiki platform evolution program. I'm evaluating several static analysis tools, but there is a good that dephend could help us clean up the code that runs Wikipedia :)

By the way, have you seen phpda? It seems similar, maybe you want to join forces :)

mihaeu commented 3 years ago

GraphML seems to be the successor of GML, but either way I started thinking about this again this weekend as I spend some time on updating dePHPend (PHP 8 support etc.).

I don't see enough demand for another output format. The current text output could probably be changed to be compatible with GraphML using awk.