PHP code example of brnshkr / config

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

    

brnshkr / config example snippets


// ./conf/phpstan.dist.php

return 

// ./conf/phpstan.dist.php

use Brnshkr\Config\PhpStan;

return PhpStan::getConfig(/* customize */);

// ./conf/phpstan.dist.php

return [
    'fig/conf/phpstan.dist.php',
    ],
];
sh
# PHP CS Fixer
./vendor/bin/php-cs-fixer fix --config ./conf/php-cs-fixer.dist.php --show-progress=dots -v

# Rector
./vendor/bin/rector process --config ./conf/rector.dist.php --memory-limit=-1

# PHPStan
./vendor/bin/phpstan analyze --configuration ./conf/phpstan.dist.php --memory-limit=-1 -vv

# Twig CS Fixer
./vendor/bin/twig-cs-fixer lint --fix --config ./conf/twig-cs-fixer.dist.php -v

# PHPUnit
./vendor/bin/phpunit --configuration ./conf/phpunit.dist.xml