PHP code example of roukmoute / pake
1. Go to this page and download the library: Download roukmoute/pake 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/ */
roukmoute / pake example snippets
use PhpCsFixer\Console\Application;
use Symfony\Component\Console\Input\ArrayInput;
task(
'default',
function () {
return ['fix'];
}
);
desc('PHP Coding Standards Fixer');
task(
'fix',
function () {
$application = new Application();
$application->setAutoExit(false);
$application->run(new ArrayInput(['fix']));
}
);
sh
▶ php ./vendor/bin/pake fix
sh
▶ php ./vendor/bin/pake
Loaded config default from ".php_cs.dist".
Using cache file ".php_cs.cache".