PHP code example of squizlabs / php_codesniffer
1. Go to this page and download the library: Download squizlabs/php_codesniffer library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
squizlabs / php_codesniffer example snippets
bash
composer global
bash
git clone https://github.com/PHPCSStandards/PHP_CodeSniffer.git
cd PHP_CodeSniffer
php bin/phpcs -h
php bin/phpcbf -h
bash
phpcs /path/to/code/myfile.php