A Slim framework 3 starter kit.
- Clone this project
git clone https://github.com/cokadev/slim-starter-kit.git
cd slim-starter-kit
- Install dependencies with composer
composer install
- Start localhost web server, assuming
./public/
is public-accessible directory withindex.php
file:
php -S localhost:8888 -t public public/index.php
You will see "Hello World!"
.
- PHPCS : configured for PSR-2
composer test:phpcs
- PHPCBF : Fix PSR-2 violations automatically
composer fix:phpcbf