Download the PHP package frizzy/slim-view without Composer
On this page you can find all versions of the php package frizzy/slim-view. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download frizzy/slim-view
More information about frizzy/slim-view
Files in frizzy/slim-view
Download frizzy/slim-view
More information about frizzy/slim-view
Files in frizzy/slim-view
Vendor frizzy
Package slim-view
Short Description Extends the Slim Framework View class for easy injection of any templating engine
License MIT
Homepage http://github.com/frizzy/slim-view
Package slim-view
Short Description Extends the Slim Framework View class for easy injection of any templating engine
License MIT
Homepage http://github.com/frizzy/slim-view
Please rate this library. Is it a good library?
Informations about the package slim-view
Slim View
Inject any rendering engine into your Slim View. Multiple engines are supported and the view will fall back to standard PHP templates if a template cannot be resolved.
Usage
Add the following in your root composer.json file:
{
"require": {
"frizzy/slim-view": "0.*"
}
}
Adding Twig to your view:
$view = new \Frizzy\Slim\View\View;
$loader = new \Twig_Loader_Filesystem(__DIR__ . '/my_templates');
$view->setRenderEngine(
new \Twig_Environment($loader),
function ($engine, $template, $data) {
return $engine->loadTemplate($template)->render($data);
},
function ($template) {
return preg_match('/\.twig$/', $template);
}
);
All versions of slim-view with dependencies
PHP Build Version
Package Version
The package frizzy/slim-view contains the following files
Loading the files please wait ....