pixline / wp-cli-php-devtools
Wrapper around common development utilities
0.2.5
2013-12-02 17:48 UTC
Requires
- php: >=5.4
- phploc/phploc: 2.0.*
- phpmd/phpmd: 1.5.*
- phpunit/php-invoker: >=1.1.0
- phpunit/phpcov: 2.0.*@dev
- phpunit/phpunit: 3.7.*
- pixline/php_codesniffer_wp_standard: dev-master
- sebastian/phpcpd: 2.0.*
- sebastian/phpdcd: 1.0.*@dev
- wp-cli/wp-cli: >=0.12
This package is not auto-updated.
Last update: 2024-12-17 01:52:56 UTC
README
Useful commands/wrappers around common development and test utilities:
phpcpd
-- Find duplicate PHP code via PHP Copy/Paste Detectorphpcs
-- Detects violations of a defined set of coding standards via PHP Code Sniffer.phpdcd
-- Find dead/unused PHP code via PHP Dead Code Detectorphploc
-- Measure the size of a PHP project via PHP Lines of Codephpmd
-- Analyze source code for several potential problems via PHP Mess Detectorphpunit
-- Run 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
- 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
Plugin released under the MIT License