Download the PHP package alanwillms/php-hound without Composer
On this page you can find all versions of the php package alanwillms/php-hound. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package php-hound
PHP Hound
This is a work in progress!
PHP Hound runs a set of quality assurance tools for PHP and reduce results to a single beautiful report.
It currently supports:
- PHPCodeSniffer: code style and identation according to PSR-2.
- PHPCopyPasteDetector: duplicated code detection.
- PHPMessDetector: checks for complex, unused, broken or unclear code.
Installation
PHP Hound can be installed through Composer.
Local installation
To install it locally, run the following command:
Then you can execute PHP Hound by running ./vendor/bin/php-hound
.
Global installation
You can install PHP Hound globally with:
Then you can add ~/.composer/bin
directory to your PATH
, so you can
simply type php-hound
to run it from anywhere. If you want to do this,
add the following to your ~/.profile
(or ~/.bashrc
) file:
If you want to apply the changes to your current terminal session, run
source ~/.profile
(or source ~/bashrc
).
Command line usage
Basic usage:
You can run php-hound --help
to display a list of all available options.
Gradually fix legacy code
If you have a huge base of legacy code, it's really hard to fix all code issues at the same time, in a single commit.
PHP Hound helps you to gradually fix your code by only warning about issues found in the files and lines touched by a branch or commit. All other files or lines will be ignored.
That's pretty easy to achieve:
All versions of php-hound with dependencies
sebastian/phpcpd Version 2.*
phpmd/phpmd Version 2.2.*
league/climate Version 3.1.*
sabre/xml Version ^1.1
league/csv Version ^7.1
league/plates Version ^3.1
sebastian/diff Version ~1.3
sebastian/git Version ~2.0