stvkoch/simple-example

Example very Simple Model/SQL Buidler and Config Libray

dev-master 2013-07-13 13:54 UTC

This package is not auto-updated.

Last update: 2020-01-05 15:52:32 UTC


README

Main points

This is rapid example tha how use Simple components.

Install

git clone https://github.com/stvkoch/Simple-example.git
cd Simple-example
composer.phar install

Transform WTF! to WOOW!

- directory "Config" has files that you can read by \Simple\Config\PHP::get('filename', 'property');
- the file middleware in the directory configuration defines its your middleware stack, you can select which middleware should be executed by setting routes. By default the route is defined by regular expression .* You can deny regular expressions by adding the character !, Example: '!404$'
- example: Suppose you want to run the middleware when the uri match '/users'.
	- \Simple\Middleware\Application::definition(array('namespace'=>'\Lellol\Middleware', class'=>'login', 'function'=>'check', 'id'=>'lellol.login', 'route'=>'^/users'))