Skeleton application based on slim/slim
and symfony/console
PHP
: version 5.6 or laterslim/slim
: version 3.12symfony/console
: version 3.4symfony/process
: version 3.4twig/twig
: version 1.38analog/analog
: version 1.0phpunit/phpunit
: version 5.7
-
Create project with
composer
composer create-project ddrv/slim-app path/to/project
-
Change config files
/path/to/project/config/local.php
and/path/to/project/config/test.php
. -
If you using environment variable
APP_ENV
, rename config filemv ./config/local.php ./config/{$APP_ENV}.php
-
Add to cron every minutes command
* * * * * /path/to/php /path/to/project/bin/console schedule:run
see ./config/global.php -> schedule
php ./vendor/bin/phpunit
-
Start development server
php ./bin/console app:dev 8080
-
Open home page or hello page