Code Monkey home page Code Monkey logo

choregus / protostack Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 35 KB

A simple prototyping stack/framework for PHP developers that includes a template engine, flat file database, and UIkit functions. Think of it as a very poor man's Laravel. You can see an example of it working in the link below.

Home Page: https://innovationcompany.co.uk/labs/stack/

PHP 72.32% CSS 0.13% Smarty 27.55%
prototype php laravel framework uikit flat-file-db template-engine

protostack's Introduction

What is ProtoStack?

By James Welch, 2020

ProtoStack is a much slimmed-down version of something akin to Laravel. It allows you to 'prototype' a new web project in double-quick time without having to re-invent the wheel each time. ProtoStack was created because I found Laravel (and similar frameworks) way too complex, cumbersome, and difficult to set up. ProtoStack suits coders that prefer a much leaner way to start on a project, or amatuer coders (like me!).

There are only a few (but powerful) elements included in the 'framework' of ProtoStack, and they are:-

  • A template engine
    • this keeps PHP code away from any web page designs, so that each web page template within your site is extremely easy to design and work with.
    • a simple setup of a template file (.tpl in templates directory) and an 'engine' file (.php in engine directory) work together to create great, dynamic pages (including php arrays and variables) - very easy to code with.
  • A flat file database engine
    • using the PHD flat file database engine means that ProtoStack is truly dynamic and data driven from the second that you upload the files to a directory of your choice.
    • create data driven websites and apps in minutes, literally.
  • A front-end framework
    • using UIkit, ProtoStack allows you to develop fast and powerful web interfaces for sites and apps.

How to Setup ProtoStack

  • Upload all of the files within the ProtoStack directory to a directory on your server that is accessible by the web (e.g. www.yoursite.com/protostack).
  • Open index.php in the root directory of ProtoStack to view how ProtoStack 'routes' url requests to the appropriate engine/template files - Some example files ('example' and 'another') have been included for you to edit.
  • That's it...unless you want a fully functioning database, too. See below, if so.

** MAKE SURE that the .htaccess file has been copied to the root of ProtoStack.

If you are having issues at this point, it is probably related to permissions of files/folders.

If you want to use the in-built database engine to work with data

These steps can be found in db/howto.md

Coming Soon...

  • Forms and password security for areas of the site.

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.