Coder Social home page Coder Social logo

darkwave.ltd's Introduction

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

darkwave.ltd's People

Contributors

jyoungblood avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.