dev-master
9999999-devCount lines of code you wrote in your Symfony2 project
MIT
The Requires
symfony loc
Count lines of code you wrote in your Symfony2 project
Symfony2Loc is an extremely simple Symfony2 bundle that counts the number of lines of code you wrote in your Symfony2 project., (*1)
It goes through all the bundles in the src/ directory, and counts the number of lines in the .php
, .twig
, .js
and .css
files., (*2)
To install it, just add the following line to your composer.json file:
"bastienl/symfony2loc-bundle" : "dev-master"
, (*3)
And register it in app/AppKernel.php
:, (*4)
php
<?php
// app/AppKernel.php
public function registerBundles()
{
return array(
// ...
new BastienL\Bundle\Symfony2LocBundle\Symfony2LocBundle(),
);
}
, (*5)
To use it, just type (at the root of your Symfony2 project):
php app/console count:loc
, (*6)
You can find this project on packagist: https://packagist.org/packages/bastienl/symfony2loc-bundle, (*7)
Count lines of code you wrote in your Symfony2 project
MIT
symfony loc