Hi.
I already wrote about this tool a month ago. Then he was still at the very beginning of his journey. And after a month, I want to show you a first stable version with a lot of new things.
First of all, the list of metrics has expanded, now there are 9 of them. You can learn more about them in this part documentation.

Afferent couplings:
Efferent couplings:
Instability:
Abstractness;
Lack of Cohesion in Methods;
Lack of Cohesion in Methods 4 (or the number of connected components of the class);
Cyclomatic Complexity;
Count of magic numbers in functions and methods;
Count fully typed methods.
Secondly, new dependency graphs, now with the ability to scale and move, and in a new style. You can learn more about them in this part documentation.
Now PhpStats allows you to build 8 types of graphs:
Class (or interface) dependencies;
Class (interface) extend and implementation dependencies;
Function or method dependencies;
Links within a class (or graph for the LCOM 4 metric);
Links between files (included in global and in functions);
Namespace dependencies graph;
Namespace structure graph;
Function reachability graph.
Thirdly, there was an analysis of the relationship between symbols. So, for example, how are two classes related, whether they use methods, fields, or constants of each other. You can learn more about them in this part documentation.
Three types of links are currently supported:
For class-class relations:
Whether one class extends another and vice versa;
Whether the class implements the interface or vice versa;
What methods, fields, and constants are used by one class used by another, and in which methods this happens.
For class-function relations:
Function belong to class;
The class is used inside the function;
Used class members in functions;
The function is used in the class (+ all methods where this function is used).
For function-function relations:
Functions belong to the same class;
Does the first function use the second and vice versa;
Whether the first function is reachable from the second through calls and vice versa (+ call stacks to reach the function).
And also very useful functions, finding the reachability of a function from another function with flexible configuration and the ability to ignore paths with some given functions. You can learn more about it in this part of the documentation.
And many improvements in UX and UI.

I will be glad to hear comments about metrics, as well as graphs and everything related to the project from your practical point of view.
Links:
Project on github: https://github.com/i582/phpstats
Documentation: https://i582.github.io/phpstats-docs/
Excuse me.
I am the creator of The Bettergist Collective.
Not only do I archive every single open source packagist.org PHP project every quarter, but I also run them all through various Continuous Integration tests, such as PHPCS, PHPUnit (if they have tests), and PHPStan…. and then I get all these stats, let people filter projects based upon metrics, etc.

That’s why I call it “bettergist”, because by default, like Slashdot, it will only show well-developed projects in the search results…
Would you please reach out to me at Twitter (DM) or [email protected] so we can discuss including your project’s stats as a core part of the Bettergist Collective? It’s safe to say your work combined with mine could have profound implications on the Next Stage of PHP’s glorious evolution and take us well into the 2020s… That’s my goal, anyway.
PS, I want to thank the maintainer of phpstan for so enthusastically helping me with the various problems I’ve found and reaching out to me about my unique abilities to test literally 250,000+ PHP packages in short order. (I’ve basically recreated TravisCI internally).
What’s the link to Bettergist, couldn’t find anything online?
Members
Online

source