2017 © Pedro Peláez
 

library silex-provider

The Puli service provider for Silex.

image

puli/silex-provider

The Puli service provider for Silex.

  • Monday, August 15, 2016
  • by webmozart
  • Repository
  • 3 Watchers
  • 1 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

The Puli Service Provider for Silex

Build Status Build status Build Status Latest Stable Version Total Downloads Dependency Status, (*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)

The Versions