PHP code example of mollie / php-coding-standards
1. Go to this page and download the library: Download mollie/php-coding-standards 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/ */
mollie / php-coding-standards example snippets
use Mollie\PhpCodingStandards\PhpCsFixer\Rules;
$config->setRules(Rules::getForPhp83());
use Mollie\PhpCodingStandards\PhpCsFixer\Rules;
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$finder = Finder::create()
->in(__DIR__);
return (new Config())
->setFinder($finder)
->setRiskyAllowed(true)
// use specific rules for your php version e.g.: getForPhp74, getForPhp82, getForPhp83
->setRules(Rules::getForPhp74());
bash
vendor/bin/php-cs-fixer fix