You have been writing a lot of PHP code and want to generate statistics about the number of comment and code lines in your application. Maybe you want to generate statistics about some PHP project. You can do it with just one command.
phploc helps you quickly generate numbers about the size of a PHP project.
You can install phploc from the PEAR installer. The PHP PEAR package itself is most likely available from your distribution vendor.