2017 © Pedro Peláez
 

library scherzo-php

A PHP micro-framework for static websites

image

aymeric-wilke/scherzo-php

A PHP micro-framework for static websites

  • Thursday, April 26, 2018
  • by AymericWilke
  • Repository
  • 1 Watchers
  • 0 Stars
  • 46 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 2 % Grown

The README.md

Welcome to Scherzo!

A PHP micro-framework for static websites - Now dareboost.com 100% ready, (*1)

What is Scherzo ?

Scherzo is an easy-to-use micro-framework allowing static websites to have Symfony-inspired router and views., (*2)

With Scherzo, you get :

1 : Easy-to-use router :, (*3)

$routes = array(
    '/' => 'index.html.twig',
    '/your-page' => 'your-file.html.twig',
);

2 : Twig cache and templates with inheritance and variables :, (*4)

$twigVars = array(
    'request' => $REQUEST,
    'whatever' => $whatever,
);

3 : And an easy-to-switch devmode, which let you see your modifications and clear the Twig cache automatically. Simply add /dev in the URL !, (*5)

How to setup Scherzo ?

  1. Run composer create-project aymeric-wilke/scherzo-php yourProjectName
  2. Create a folder at the root of your project with the name "temp" and read/write access
  3. That's it, enjoy!

Why Scherzo ?

I build websites for living. For the big ones, I use Symfony, and I wanted a Symfony-like thing for the little sites., (*6)

Because I hate to have to copy-paste the menu on all pages, for example. And to redeclare css and js files in all the head of the files. So I wanted Twig to inherit my templates, and do all the cache thing., (*7)

Then, I got rid of the '/page.html' urls, transforming them in '/page' instead., (*8)

Those ideas took a few months and a few iterations to be all in one file. But now that I have been using the same version for some time now, I just putted it on GitHub so it's even easier to set up., (*9)

The Versions

26/04 2018

dev-master

9999999-dev https://scherzo.io

A PHP micro-framework for static websites

  Sources   Download

MIT

The Requires

 

by Aymeric Wilke

php micro-framework

26/04 2018

1.2

1.2.0.0 https://scherzo.io

A PHP micro-framework for static websites

  Sources   Download

MIT

The Requires

 

by Aymeric Wilke

php micro-framework

02/05 2016

1.1

1.1.0.0 https://scherzo.io

A PHP micro-framework for static websites

  Sources   Download

MIT

The Requires

 

by Aymeric Wilke

php micro-framework

06/04 2016

v1.0

1.0.0.0

A PHP micro-framework for static websites

  Sources   Download

MIT

The Requires

 

by Aymeric Wilke

php micro-framework