A Slim/Chernozem based framework
PHP JavaScript ApacheConf HTML
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
tests
.gitattributes
.gitignore
LICENSE.txt
README.md
composer.json
gulpfile.js
package.json

README.md

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.

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.