This tool wil generate UML class diagrams with all class, interface and trait definitions in your PHP project.
generates a class and its direct dependencies
generates a namespace with all objects
generates a full package with all namespaces and objects
What will do and what won’t do
WILL generates UML class diagram statements (depending of processor used)
WON’T generates images corresponding to graph (you have to install Graphviz or PlantUML)
UmlWriter is open source. It’s hosted, developed, and maintained on GitHub.