Get stats for lines of code

There used to be plugins for this (like PHPStats - SLOC Counter) but I can't find anything that works with PHP Storm 8.
I want to be able to check the lines of code if a project, and rather if I could just select the files to be included.

Anytone kknow of a way to do this in PHP Storm 8?

2 comments
Comment actions Permalink

Hi there,

I may only suggest using PHPLOC and run it from PhpStorm via External Tools functionality.

0
Comment actions Permalink

I know this is an old question, but if you are running Linux you open the terminal at the bottom of PhpStorm and type:

find . -name '*.php' | xargs wc -l

It will output your total lines of code in each file and total overall for you.

1

Please sign in to leave a comment.