Skip to content

Repository files navigation

Slim3-template

License: MIT

A template for Slim3 PHP framework.

Precondition

My goal

First step

$ 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"}

Configuration

  1. Modify database and logger sections in configs.php.
  2. Set the environment variable name described in conf.d/nginx_vhost.conf and settings.php to the same value. (default value is APP_ENV.)

Code formatting

  • Using php-cs-fixer.
  • You can change the setting in file .php_cs.dist.

Execute batch mode

$ sh ./batch.sh

You get a JSON response on the console screen.

{"version":"0.0.1"}

About

A template for Slim3 PHP framework.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages