Skip to content

jyoungblood/slime-demo

Repository files navigation

S L I M E

Starter kit for building web applications with Slim PHP Framework

(it's Slim ... enhanced)

⭐ Demo & Docs ⭐

What's included?

  • Slim v4 (w/ Slim PSR-7)

  • Handlebars templating - Lightncandy

  • Helpful abstraction libraries:

  • 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

Requirements

  • Apache
  • PHP >= 7.4
  • PDO-compatible database (if using DB handlers)

Installation

Easy install with composer:

composer create-project hxgf/slime new-project-name

Usage

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 : )

About

Examples of cool things you can do with Slime

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published