Skip to content
This repository has been archived by the owner on Jul 14, 2020. It is now read-only.
/ slim3-boilerplate Public archive

Opinionated boilerplate for the Slim3 PHP micro framework

License

Notifications You must be signed in to change notification settings

ckrack/slim3-boilerplate

Repository files navigation

Slim3 Boilerplate

This is an opinionated boilerplate for the Slim3 PHP micro framework.

You can use it to quickly start a Slim3 project with the Plates template engine, the League/Container, Monolog, PHPDotEnv and some simple Gulp tasks for your SCSS and javascript needs.

Installation

First, create project via composer

composer create-project ckrack/slim3-boilerplate --stability="dev"

Then, ìnstall npm packages:

npm install

Running

You can simply run gulp to get a running version in a browser. This is done via the builtin PHP server, that is proxied in broser-sync. The default gulp task starts this and watches js/css files aswell as PHP templates.

gulp