appzcoder / phpcloc
Cloc & duplicate code checker tool.
Installs: 2 390
Dependents: 1
Suggesters: 0
Security: 0
Stars: 37
Watchers: 6
Forks: 4
Open Issues: 0
Requires
- php: >=5.5.9
- symfony/console: ^3.4 || ^4.0
This package is not auto-updated.
Last update: 2024-11-10 05:51:21 UTC
README
🚀 Cloc & duplicate code checker written in PHP
Requirements
PHP >= 5.5.9
Installation
Manual
$ wget https://github.com/appzcoder/phpcloc/releases/download/v0.0.2/phpcloc.phar -O phpcloc
// or
$ curl -L https://github.com/appzcoder/phpcloc/releases/download/v0.0.2/phpcloc.phar -o phpcloc
Then
$ sudo chmod a+x phpcloc
$ sudo mv phpcloc /usr/local/bin/phpcloc
Composer
$ composer global require appzcoder/phpcloc
Usage
Cloc
$ phpcloc cloc .
Duplicate code checker
$ phpcloc duplicate . --ext=php
Available Commands
$ phpcloc cloc directory --ext=php,js --exclude=vendor,node_modules
$ phpcloc duplicate directory --ext=php --exclude=vendor
Todo
- Improve algorithm complexity
- Testing
Author
License
This project is licensed under the MIT License - see the License File for details