Counting lines of code (LOC) in PHP projects
CLOC is a great tool which shows you the number of lines of code in your project and also the number of files, blank lines, comment lines, etc. It’s a great tool for your Linux environment!
First we have to install it. For Debian/Ubuntu:
apt-get install cloc
yum install cloc
CLOC does not require configuration and the running is simple:
“your-folder” contains the files or your project.
Here is an example run of CLOC:
That’s from me for now. As always, any feedback in the comments is welcome!