slim4skel
Slim 4 Framework skeleton for new web development
This is by no means a full "skeleton", in the classis sense. Also, this is not meant to be a tutorial for any of the technologies used.
Installation
Prerequisites
Composer
NPM
Clone the repository.
From the cloned directory, run composer install
and npm update
.
Run npm run webpack
.
Run php -S locahost:8080 -t public
and you are off!
Some pointers
Design
All of your design should be done in the assets
folder.
assets/img
- your images
assets/js
- the main javascript file (which imports the scss files)
add your own js files and import them in main.js
assets/sass
- sass files
Twig is set to debug mode. I have left a storage folder for caching compiled Twig templates. If you are not familiar with Twig it is pretty well documented (as is Slim itself).
Settings
settings.php
is pretty straight forward.
Stuff to do
Database (models)
Logging
Error Handling
NPM scrips (watch)
Final thoughts
As I said, this is not a tutorial about using Slim, Twig, Sass, or Webpack! However, if you have any questions feel free to email me ([email protected]) and I will do my best to help out. If you have any ideas about improving the project, by all means fork and pull! I would love to see this get bigger.