PHP code example of yoast / yoastcs

1. Go to this page and download the library: Download yoast/yoastcs 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/ */

    

yoast / yoastcs example snippets

bash
composer global config allow-plugins.dealerdirect/phpcodesniffer-composer-installer true
composer global 
json
    "scripts" : {
        "lint": [
            "@php ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint . -e php --show-deprecated --exclude vendor --exclude .git"
        ]
    }