PHP code example of bugatino / phpcs-git-pre-commit

1. Go to this page and download the library: Download bugatino/phpcs-git-pre-commit 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/ */

    

bugatino / phpcs-git-pre-commit example snippets


    php phpcs.phar --standard=PSR2 --encoding=utf-8 -n -p /path/to/file.php