Hacker News new | ask | show | jobs
by ooooak 2360 days ago
> cat `find * -type f | grep .php` | wc -l

I have a project that is going on since 2015. So ran the above command to see how much code we have. I was expecting our models to be really large turns out we have ~(404 * 3) rest endpoints. the scariest thing was Vendor dir.

LOC per dir

Models: 15053

HTTP Endpoints: 28877

migrations: 49757

Laravel: 81728 (Framework)

Vendor: 1158299 (third party php code)

Total: 1797417

1 comments

Tokei [1] provides interesting stats as well.

[1] https://github.com/XAMPPRocky/tokei