c975l / countlinescode-bundle
This bundle counts the lines of code written in a Symfony project
Fund package maintenance!
Patreon
Open Collective
buymeacoff.ee/laurentmarquet
Installs: 224
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 1
Open Issues: 0
Type:symfony-bundle
Requires
- php: ^7
- c975l/config-bundle: ^2
Requires (Dev)
- phpstan/phpstan: ^0
- phpunit/phpunit: ^7
- rector/rector: ^0
README
CountLinesCodeBundle does the following:
- counts the number of lines of code written in Symfony project.
It goes through specified directories and counts the number of lines specified in the extensions files.
CountLinesCodeBundle was forked from https://github.com/BastienL/Symfony2Loc.
CountLinesCodeBundle dedicated web page.
CountLinesCodeBundle API documentation.
## Bundle installation
### Step 1: Download the Bundle
We strongly recommend to use this only on the dev part
Use Composer to install the library
composer require-dev c975l/countlinescode-bundle
### Step 2: Define folders and extensions to look for
Then, in the /config/packages/dev/count_lines_codes.yaml
file of your project, define the following:
c975LCountLinesCode: #List of folders you want to look for folders: ['src', 'templates', 'tests', 'public/css', 'public/js'] #List of extensions you want to look for extensions: ['css', 'js', 'php', 'sh', 'sql', 'twig']
### How to use
To use it, just type (at the root of your Symfony2 project):
$ php bin/console count:loc
### TODO Improve counting command
If this project help you to reduce time to develop, you can sponsor me via the "Sponsor" button at the top :)