counting all the lines of code in a folder or directory and its sub folder is very simple
just open the command line tool CML and nevigate the directorty under that you want to cont
lines of source code.
and run below command
find .-name '*.php'| xargs wc -l