PHP code example of chefsplate / sniffer-rules
1. Go to this page and download the library: Download chefsplate/sniffer-rules 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/ */
chefsplate / sniffer-rules example snippets
'providers' => [
...
ChefsPlate\SnifferRules\ServiceProvider::class,
...
],
bash
$ php artisan vendor:publish
bash
$ php ./vendor/bin/phpcs --config-set installed_paths ./vendor/chefsplate/src/ChefsPlate/SnifferRules/Standard/
bash
$ php artisan sniff
$ php artisan sniff -n