Skip to content

Instantly share code, notes, and snippets.

@asaokamei
Last active December 17, 2015 23:49
Show Gist options
  • Save asaokamei/5691992 to your computer and use it in GitHub Desktop.
Save asaokamei/5691992 to your computer and use it in GitHub Desktop.
count lines of php code

Counting Lines of PHP Codes

###How to Count

use simple shell scripts. modify the following command as necessary.

wc -l `find . -name "*.php"`

###wscore/dev

executed following command,

wc -l `find ./*/src -name "*.php"`

at

WScore-dev/vendor/wscore

12808 total

###symfony/framework-standard-edition

executed the command at:

Symfony/vendor/symfony/symfony/src/Symfony/Component

196480 total

Symfony/vendor/doctrine/dbal/lib/Doctrine

30345 total

Symfony/vendor/doctrine/orm/lib/Doctrine

48385 total

Symfony/vendor/doctrine/common/lib/Doctrine

12207 total
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment