https://github.com/appzcoder/phpcloc
:rocket: Cloc & duplicate code checker tool
https://github.com/appzcoder/phpcloc
cloc code-duplication console duplicate-detection php
Last synced: 3 months ago
JSON representation
:rocket: Cloc & duplicate code checker tool
- Host: GitHub
- URL: https://github.com/appzcoder/phpcloc
- Owner: appzcoder
- License: mit
- Created: 2018-05-20T05:33:29.000Z (over 7 years ago)
- Default Branch: develop
- Last Pushed: 2018-05-28T04:59:11.000Z (over 7 years ago)
- Last Synced: 2025-05-20T00:48:25.338Z (5 months ago)
- Topics: cloc, code-duplication, console, duplicate-detection, php
- Language: PHP
- Homepage: https://packagist.org/packages/appzcoder/phpcloc
- Size: 200 KB
- Stars: 37
- Watchers: 5
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHPCloc
:rocket: 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
[Sohel Amin](http://sohelamin.com)
## License
This project is licensed under the MIT License - see the [License File](LICENSE) for details