A template for Slim3 PHP framework.
- I make a simpler and practical footing than a skelton project.
$ git clone https://github.com/shin3tky/Slim3-template.git
$ cd Slim3-template
$ composer install
$ ./start.sh
Execute on another screen.
$ curl 'http://localhost:8080/hello/version'
You get a JSON response.
{"version":"0.0.1"}
- Modify
databaseandloggersections in configs.php. - Set the environment variable name described in conf.d/nginx_vhost.conf and settings.php to the same value. (default value is
APP_ENV.)
- Using php-cs-fixer.
- You can change the setting in file
.php_cs.dist.
$ sh ./batch.sh
You get a JSON response on the console screen.
{"version":"0.0.1"}