After a co-worker mentioned the need for code complexity analysis for our PHP codebase, I found this tool called PHP Depend. Depending on the size of our codebase, this tool can take quite a while to run, but when consider all the work it’s doing, it’s worth the wait. It can leverage ImageMagick to produce charts and graphs.
https://pdepend.org/documentation/handbook/command-line.html