puli/silex-provider

The Puli service provider for Silex.

Maintainers

πŸ‘ webmozart

Package info

github.com/puli/silex-provider

Homepage

Issues

pkg:composer/puli/silex-provider

Statistics

Installs: 4

Dependents: 0

Suggesters: 0

Stars: 0

dev-master / 1.0.x-dev 2016-08-15 15:07 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 497faed17b160a2b61febb3f2c1b255dd7b9e5ee

  • Bernhard Schussek <bschussek.woop@gmail.com>

This package is auto-updated.

Last update: 2026-06-08 03:32:06 UTC


README

πŸ‘ Build Status
πŸ‘ Build status
πŸ‘ Build Status
πŸ‘ Latest Stable Version
πŸ‘ Total Downloads
πŸ‘ Dependency Status

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!

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.