PHP code example of max-antipin / php-code-sniffs

1. Go to this page and download the library: Download max-antipin/php-code-sniffs 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/ */

    

max-antipin / php-code-sniffs example snippets

Shell
php ./vendor/bin/phpcs --ignore=vendor/,var/,*.inc --standard=PSR12Ext ./PSR12Ext/

php ./vendor/bin/phpcs --ignore=vendor/,var/ --standard=PSR12Ext ./PSR12Ext/Tests/
Shell
php ./vendor/bin/phpunit --filter PSR12Ext --no-coverage