Stars: 162
Forks: 31
Pull Requests: 33
Issues: 64
Watchers: 15
Last Updated: 2022-12-09 07:46:46
PHPCheckstyle is an open-source tool that helps PHP programmers adhere to certain coding conventions.
License: GNU Lesser General Public License v3.0
Languages: CSS, PHP, Shell, Batchfile, Hack
PHPCheckstyle is an open-source tool that helps PHP programmers adhere to certain coding conventions. The tools checks the input PHP source code and reports any deviations from the coding convention.
The tool uses the PEAR Coding Standards as the default coding convention. But it allows you to configure it to suit your coding standards.
Please visit https://github.com/PHPCheckstyle/phpcheckstyle/wiki for more information and documentation
composer require phpcheckstyle/phpcheckstyleor Add phpcheckstyle/phpcheckstyle as a requirement to composer.json:
{
"require": {
"phpcheckstyle/phpcheckstyle": "dev-master"
}
}Update your packages with composer update or if installing from fresh, with composer install.
Just download https://github.com/PHPCheckstyle/phpcheckstyle/archive/master.zip and unzip the distribution.
$> unzip PhpCheckstyle.zipThis will create a directory called phpcheckstyle and expand all
files in it.
install VirtualBox
install Vagrant
launch vagrant up in the project root directory to start the VM
In case of problem with the "guest additions", launch :
vagrant plugin install vagrant-vbguest
vagrant provision --provision-with run_phpcheckstylevagrant provision --provision-with run_phpunitvagrant sshChange directory to the PHPCheckstyle installation directory.
$> cd phpcheckstyleExecute the run.php script providing the --src option.
$> php run.php --src <php source directory/file>Use the --help option to see more options
$> php run.php --helpSee LICENSE