Download the PHP package 421p/php-quality-tool-cli without Composer
On this page you can find all versions of the php package 421p/php-quality-tool-cli. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download 421p/php-quality-tool-cli
More information about 421p/php-quality-tool-cli
Files in 421p/php-quality-tool-cli
Package php-quality-tool-cli
Short Description Smart Gamma PHP Cli Quality Tool
License MIT
Informations about the package php-quality-tool-cli
Smart Gamma PHP Cli Quality Tool
The interactive tool will allow project's team to keep common development code style standards based on pre-commit git hook
The tool allows automaticly add git pre-commit hook to local dev machine and runs set of quality assertions:
- PHPLint
- PHPCS
- php-cs-fixer
- PHPMD
- PhpSpec
- PhpUnit (TODO)
- Commit message has Jira feature number i.e AB-123 (TODO)
As additional feature it allows use php-cs-fixer with auto fix of commited files
Install
Usage
Available options:
Configuration
Config example
PHPCS & php-cs-fixer
Will initiate assertions and if violations in code style will be found in the files applied in commit it will prompt to autofix these violations and rescan files.
Autofixed files will be automaticly added to the latest commit if no --no-commit-autofixed
option is submitted.
PHPMD
The tool will scan PhpMD warning, but won't block the commit, but will output the list and prompt to rescan your commited file if you want to fix via IDE some indicated warnings.
Docker
Option --no-commit-autofixed
is useful when quality tool is invoked by git hook but running inside docker container
Otherwise, 2 git processes may conflict.
All versions of php-quality-tool-cli with dependencies
php Version ^7.0
symfony/console Version ^2.5 || ^3.0 || ^4.0
symfony/process Version ^2.5 || ^3.0 || ^4.0
squizlabs/php_codesniffer Version @stable
friendsofphp/php-cs-fixer Version ^2.11
symfony/config Version ^2.5 || ^3.0 || ^4.0
symfony/yaml Version ^2.5 || ^3.0 || ^4.0
phpmd/phpmd Version @stable
mi-schi/phpmd-extension Version ^4.2