ddrv / slim-app
Simple web application based on slim/slim and symfony/console
Installs: 18
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: >=5.6
- analog/analog: ~1.0
- slim/slim: ~3.12
- symfony/console: ~3.4
- symfony/process: ~3.4
- twig/twig: ~1.38
Requires (Dev)
- phpunit/phpunit: ~5.7
This package is auto-updated.
Last update: 2024-10-24 03:03:54 UTC
README
Skeleton application based on slim/slim
and symfony/console
Requirements
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
Install
-
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
Testing
php ./vendor/bin/phpunit
Development
-
Start development server
php ./bin/console app:dev 8080
-
Open home page or hello page