PHP code example of stickee / canary
1. Go to this page and download the library: Download stickee/canary 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/ */
stickee / canary example snippets
bash
cp vendor/stickee/php-cs-fixer-config/dist/.php-cs-fixer.php .
cp vendor/stickee/larastan-config/dist/phpstan.dist.neon .
cp vendor/stickee/larastan-config/dist/phpstan.ci.neon .
cp vendor/stickee/rector-config/dist/rector.php .
bash
if grep -q '.php-cs-fixer.cache' .gitignore;
then
echo ".gitignore contains .php-cs-fixer.cache";
else
echo "Adding .php-cs-fixer.cache to .gitignore";
echo ".php-cs-fixer.cache" >> .gitignore;
echo "Done";
fi
bash
composer fix
# or vendor/bin/php-cs-fixer fix --config .php-cs-fixer.php