2017 © Pedro Peláez
 

library jtsm

basic web app framework for PHP 5.4

image

devwrench/jtsm

basic web app framework for PHP 5.4

  • Monday, January 23, 2017
  • by cxw
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

jtsm

This is a basic web app framework for PHP 5.4. It is currently in a very rudimentary state., (*1)

Advantages

  • Works on PHP 5.4 - you don't need the latest!
  • Does not require any URL rewriting - can work with nginx on a server you don't control
  • Stores all configuration information in .php files - can work on servers that do not block access to specific files or directories, or that do not provide space outside the document root for storage.

Usage

Subclass \JTSM\App and say (new YourApp($site_root))->run();., (*2)

Site layout

site root (provided by you as a constructor parameter)
|
+--- skins (base directory for Twig files)
     |
     +--- cache (Twig cache directory)

Other than that, everything is up to you., (*3)

Installing

I'm sorry to say this uses an update of nikic/fast-route that I haven't submitted a PR for yet. Here's how I install:, (*4)

  1. Create a directory for your new site. In this doc, that directory is called base.
  2. Copy ./composer.json.template to base/composer.json.
  3. In base, composer update.

After that, you can set up a very bare-bones site:, (*5)

  1. Copy ./index.php.template to base/index.php.
  2. Copy ./root.twig.php.template to base/skins/root.twig.php
  3. In base, run php -S localhost:1337
  4. In a browser, open http://localhost:1337.

You should have a basic site running!, (*6)

Copyright (c) 2016 Chris White (cxw42@github) (http://www.devwrench.com). LGPL-3+. See LICENSE.md for details., (*7)

The Versions

23/01 2017

dev-master

9999999-dev

basic web app framework for PHP 5.4

  Sources   Download

LGPL-3.0+

The Requires

 

api framework

22/01 2017

v0.1.4

0.1.4.0

basic web app framework for PHP 5.4

  Sources   Download

LGPL-3.0+

The Requires

 

api framework

21/01 2017

v0.1.2

0.1.2.0

basic web app framework for PHP 5.4

  Sources   Download

LGPL-3.0+

The Requires

 

api framework

21/01 2017

v0.1.3

0.1.3.0

basic web app framework for PHP 5.4

  Sources   Download

LGPL-3.0+

The Requires

 

api framework

21/01 2017

v0.1.1

0.1.1.0

basic web app framework for PHP 5.4

  Sources   Download

LGPL-3.0+

The Requires

 

api framework

21/01 2017

v0.1.0

0.1.0.0

basic web app framework for PHP 5.4

  Sources   Download

LGPL-3.0+

The Requires

 

api framework