library lumy3
A Slim/Chernozem based framework
pyrsmk/lumy3
A Slim/Chernozem based framework
- Saturday, May 27, 2017
- by pyrsmk
- Repository
- 1 Watchers
- 1 Stars
- 137 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 4 Versions
- 0 % Grown
Lumy 3.2.0
Lumy is just a wrapper that merges Slim framework and Chernozem container. Please read both documentations to know how to use Lumy., (*1)
Simple example
$app = new Lumy\App();
// Add a service
$app['twig'] = $app->service(function($app) {
$loader = new Twig_Loader_Filesystem('/path/to/templates');
$twig = new Twig_Environment($loader, [
'cache' => '/path/to/compilation_cache',
]);
});
// Add a route
$app->get('/', function($request, $response) {
// Render the template
$this['twig']->render('index.html', [
'the' => 'variables',
'go' => 'here'
]);
});
$app->run();
License
MIT., (*2)
dev-master
9999999-dev
A Slim/Chernozem based framework
Sources
Download
MIT
The Requires
framework
slim
chernozem
3.2.0
3.2.0.0
A Slim/Chernozem based framework
Sources
Download
MIT
The Requires
framework
slim
chernozem
3.1.0
3.1.0.0
A Chernozem wrapper around Slim framework
Sources
Download
MIT
The Requires
framework
slim
chernozem
3.0.0
3.0.0.0
A Chernozem wrapper around Slim framework
Sources
Download
MIT
The Requires
framework
slim
chernozem