PHP code example of esfahanahan / php-cs-fixer-config

1. Go to this page and download the library: Download esfahanahan/php-cs-fixer-config 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/ */

    

esfahanahan / php-cs-fixer-config example snippets




n EsfahanAhan\PhpCsFixer\Config::fromFolders(['src']);



n EsfahanAhan\PhpCsFixer\Config::fromFolders(['src'], null, ['ignoreThisDir']);



n EsfahanAhan\PhpCsFixer\Config::fromFolders(['src'])->mergeRules([
   'php_unit_strict' => false,
]);



n EsfahanAhan\PhpCsFixer\Config::forLaravel();



n EsfahanAhan\PhpCsFixer\Config::forLaravel(['some_other_folder']);



n EsfahanAhan\PhpCsFixer\Config::fromFolders(['src'], '8.3');

// or

return EsfahanAhan\PhpCsFixer\Config::forLaravel([], '8.3');