Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pixline/wp-cli-php-devtools
Developer tools wp-cli commands bundle: phpcpd, phpcs, phpdcd, phploc, phpmd, phpunit
https://github.com/pixline/wp-cli-php-devtools
Last synced: 2 months ago
JSON representation
Developer tools wp-cli commands bundle: phpcpd, phpcs, phpdcd, phploc, phpmd, phpunit
- Host: GitHub
- URL: https://github.com/pixline/wp-cli-php-devtools
- Owner: pixline
- Created: 2013-10-31T11:53:19.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2016-10-20T13:53:16.000Z (about 8 years ago)
- Last Synced: 2024-10-07T23:10:01.713Z (3 months ago)
- Language: PHP
- Homepage:
- Size: 575 KB
- Stars: 54
- Watchers: 2
- Forks: 7
- Open Issues: 6
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# wp-cli PHP developer tools 0.2.5
[![Build Status](https://travis-ci.org/pixline/wp-cli-php-devtools.png?branch=master)](https://travis-ci.org/pixline/wp-cli-php-devtools) [![Support](https://www.paypalobjects.com/it_IT/IT/i/btn/btn_donate_SM.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=CX6VQ6FVJFN4L)
Useful commands/wrappers around common development and test utilities:
* `phpcpd` -- Find duplicate PHP code via [PHP Copy/Paste Detector](https://github.com/sebastianbergmann/phpcpd)
* `phpcs` -- Detects violations of a defined set of coding standards via [PHP Code Sniffer](https://github.com/squizlabs/php_codesniffer).
* `phpdcd` -- Find dead/unused PHP code via [PHP Dead Code Detector](https://github.com/sebastianbergmann/phpdcd)
* `phploc` -- Measure the size of a PHP project via [PHP Lines of Code](https://github.com/sebastianbergmann/phploc)
* `phpmd` -- Analyze source code for several potential problems via [PHP Mess Detector](https://github.com/phpmd/phpmd)
* `phpunit` -- Run [PHPunit](https://github.com/sebastianbergmann/phpunit) unit tests.Also in the bundle a single command to run every command at once:
* `phpreport` -- Run phpcpd + phpcs + phpdcd + phploc + phpmd + phpunit over a single plugin/theme
Work in progress:
* `minify` -- Combines and minifies JavaScript and CSS files via YUI Compressor.
* `phpdoc` -- Generate project documentation via phpDocumentor.
* `phpcov` -- Measure and report code testing coverage via PHP_CodeCoverage.## System Requirements
* PHP >=5.4
* Composer
* wp-cli## Setup
* Install [wp-cli](https://wp-cli.org)
* Install wp-cli-php-devtools:```
cd /path/to/wp-cli/
composer config repositories.wp-cli composer http://wp-cli.org/package-index/
composer require pixline/wp-cli-php-devtools=0.2.5
```* Add wp-cli bin/ folder to $PATH (important!!):
```
echo 'PATH="/path/to/wp-cli/bin/:$PATH" >> .bash_profile
```## Changelog
### 0.2.5
* `wp-cli.yml` configuration support (all commands except phpunit)
* Cleaner inline commands help### Previous releases
* 0.2.4 (29/11/2013) `__invoke` implementation
* 0.2.3 (29/11/2013) First public release## Credits
Copyright (c) 2013+ Paolo Tresso / [SWERgroup](http://swergroup.com)
Plugin released under the [MIT License](http://opensource.org/licenses/MIT)