puli / silex-provider
The Puli service provider for Silex.
Requires
- php: ^5.3.9|^7.0
- puli/discovery: ^1.0.0-beta9@dev
- puli/repository: ^1.0.0-beta9@dev,<1.1
- puli/url-generator: ^1.0.0-beta4@dev
- silex/silex: ^1.3
- webmozart/expression: ^1.0.0-beta5
Requires (Dev)
- phpunit/phpunit: ^4.6
- puli/cli: ^1.0.0-beta10@dev
- puli/composer-plugin: ^1.0.0-beta9@dev
- puli/manager: ^1.0-beta10@dev
- puli/twig-extension: ^1.0.0-beta7
- sebastian/version: ^1.0.1
- webmozart/console: ^1.0-beta2
This package is auto-updated.
Last update: 2024-10-07 23:57:13 UTC
README
Latest release: none
PHP >= 5.3.9
Integrates Puli with the Silex microframework.
Just register the service provider to your app:
$app->register(new \Puli\SilexProvider\PuliServiceProvider());
This will give you the possibility to use the Puli paths instead of classic Twig paths:
$this->get('/', function () use ($app) { return $app['twig']->render('/app/views/index.html.twig'); });
To disable the Twig integration, use:
$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.
Finally install the PuliServiceProvider adding puli/silex-provider
to your composer.json or from CLI:
$ composer require puli/silex-provider
Documentation
Read the Puli Documentation to learn more about Puli.
Contribute
Contributions to Puli are always welcome!
- Report any bugs or issues you find on the issue tracker.
- You can grab the source code at Puli’s Git repository.
Support
If you are having problems, send a mail to bschussek@gmail.com or shout out to @webmozart on Twitter.
License
All contents of this package are licensed under the MIT license.