phploc is a tool for quickly measuring the size and analysing the structure of a PHP project. Using PHPLOC tool, developers can understand their project code quality and structure of the PHP Code base. This tool result will provide more detail our their project size, how length of classes and method is used/defined (It will provide idea about for reduce those), also its provides detail about commented section in a code , detail about CONSTANTS etc.
Below is the github link, here you can download the PHPLOC packages.
Command Line Installation Steps:
Use Linux System.
$ mkdir cs_phpdoc //My Folder name
& cd cs_phpdoc //moving to my folder path
$ wget https://phar.phpunit.de/phploc.phar
$ php phploc.phar –version
Below is the command you have to execute to analyse your PHP Project.
$ php phploc.phar src