ckrack / slim3-boilerplate
Opinionated slim3 boilerplate containing league/plates and league/container as replacements for twig and pimple. Also, monolog and phpdotenv will be integrated.
Installs: 22
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Language:CSS
Type:project
Requires
- ckrack/slim-league-container-bridge: ^3.1
- monolog/monolog: ^1.22
- projek-xyz/slim-plates: ^0.2.2
- slim/slim: ^3.7
- vlucas/phpdotenv: ^2.4
Requires (Dev)
- phpunit/phpunit: >=4.8 < 6.0
This package is auto-updated.
Last update: 2020-08-14 04:34:35 UTC
README
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