Download the PHP package jyoungblood/slime without Composer
On this page you can find all versions of the php package jyoungblood/slime. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jyoungblood/slime
More information about jyoungblood/slime
Files in jyoungblood/slime
Package slime
Short Description Starter kit for building web apps with Slim 4
License MIT
Homepage https://github.com/jyoungblood/slime
Informations about the package slime
S L I M E
Starter kit for building web applications with Slim PHP Framework
- Documentation: https://slime.technology/
- Demo SRC: https://github.com/jyoungblood/slime-demo
SLIME is a highly opinionated boilerplate for Slim applications. It's designed for solo developers working in "small scale" environments. While it produces a reliable final product, this configuration focuses on developer velocity, making it easy to provide value quickly without introducing unnecessary technical overhead.
What's included?
-
Slim v4 (w/ Slim PSR-7)
-
Handlebars templating - Lightncandy
-
View rendering helpers - Slime Render
-
Helpful Vanilla PHP abstraction libraries:
- 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
-
.env - helpful basic variables and settings, pre-wired with phpdotenv
-
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
,.env
,.vscode
,error_log
, and.DS_Store
Requirements
- Apache
- PHP >= 7.4
- PDO-compatible database (if using DB handlers)
Installation
Easy install with composer:
Initialize the .env file, using the boilerplate example:
Usage
Although SLIME is currently not intended for local development workflows, you're welcome to try your luck with PHP's built-in server:
Alternatively, you could use Herd, which is an excellent tool for local development.
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 more examples of the kind of things 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 : )
All versions of slime with dependencies
slim/psr7 Version ^1.6.1
zordius/lightncandy Version ^1.2
vlucas/phpdotenv Version ^5.6
jyoungblood/dbkit Version ^1.2
jyoungblood/cookie Version ^1.1
jyoungblood/http-request Version ^1.2
jyoungblood/x-utilities Version ^1.2
jyoungblood/slime-render Version ^1.3