The Puli Service Provider for Silex
, (*1)
Latest release: none, (*2)
PHP >= 5.3.9, (*3)
Integrates Puli with the Silex microframework., (*4)
Just register the service provider to your app:, (*5)
$app->register(new \Puli\SilexProvider\PuliServiceProvider());
This will give you the possibility to use the Puli paths instead of classic Twig paths:, (*6)
$this->get('/', function () use ($app) {
return $app['twig']->render('/app/views/index.html.twig');
});
To disable the Twig integration, use:, (*7)
$app->register(new \Puli\SilexProvider\PuliServiceProvider(), array(
'puli.enable_twig' => false,
));
Authors
Installation
Install Silex using Composer.
Follow the Installation guide guide to install Puli in your project., (*8)
Finally install the PuliServiceProvider adding puli/silex-provider
to your composer.json or from CLI:, (*9)
$ composer require puli/silex-provider
Documentation
Read the Puli Documentation to learn more about Puli., (*10)
Contribute
Contributions to Puli are always welcome!, (*11)
Support
If you are having problems, send a mail to bschussek@gmail.com or shout out to
@webmozart on Twitter., (*12)
License
All contents of this package are licensed under the MIT license., (*13)