An open API service indexing awesome lists of open source software.

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

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 .
```
cloc

### Duplicate code checker
```
$ phpcloc duplicate . --ext=php
```
duplicate

#### 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