PHP code example of charcoal / boilerplate
1. Go to this page and download the library: Download charcoal/boilerplate 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/ */
charcoal / boilerplate example snippets
shell
cd www
php -S localhost:8080
shell
# Run JSON Lint, PHP Lint, PHPCS, PHPStan, and Psalm
composer lint
# Run only JSON Lint
composer lint:json
./vendor/bin/jsonlint config/*.json
# Run only PHP syntax check
composer lint:php
php -l src/*.php
# Run only PHPCS
composer lint:phpcs
./vendor/bin/phpcs -ps --colors src/
# Run only PHPStan
composer lint:phpstan
./vendor/bin/phpstan analyse
# Run only Psalm
composer lint:psalm
./vendor/bin/psalm