(it's Slim ... enhanced)
-
Slim v4 (w/ Slim PSR-7)
-
Handlebars templating - Lightncandy
-
Helpful abstraction libraries:
- View rendering - Slime Render
- Database handlers - DB Kit
- Cookie handlers - Cookie
- Simple HTTP client - HTTP Request
- Misc utility functions - X-Utilities
-
Minimal front-end boilerplate & utility library options - scratch
-
Simple organization - folders for css, js, images, templates, and controllers
-
Blank CSS and JS placeholder files
-
settings.php - helpful basic variables and settings
-
index.php - initialized Slim application w/ middleware, db connection, and default 404 configuration
-
.htaccess - routes all non-file urls to index, forces https, and uses gzip for static assets (if available)
-
.gitignore - ignores
/vendor
,.vscode
, and.DS_Store
- Apache
- PHP >= 7.4
- PDO-compatible database (if using DB handlers)
Easy install with composer:
composer create-project hxgf/slime new-project-name
See controllers/index.php for an example of routing and template rendering.
See templates/index.html and templates/_layouts/base.html for examples using handlebars and layouts.
Helpful resources:
Check out slime-demo to see examples of some cool stuff you can do with Slime!
Slime is heavily inspired by STEREO, an older toolkit I've assembled and maintained, which has helped me to be very productive and make a decent living over the years.
I hope these tools and the workflows they enable can help some of you as much as they've helped me : )