2017 © Pedro Peláez
 

library bundlefu-silex-service-provider

Silex service provider for BundleFu

image

dotsunited/bundlefu-silex-service-provider

Silex service provider for BundleFu

  • Friday, February 6, 2015
  • by jsor
  • Repository
  • 7 Watchers
  • 0 Stars
  • 367 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 2 % Grown

The README.md

Silex service provider for BundleFu

Build Status, (*1)

The BundleFuSilexServiceProvider integrates BundleFu into the Silex micro-framework., (*2)

Installation

BundleFuSilexServiceProvider can be installed using the Composer tool. You can either add dotsunited/bundlefu-silex-service-provider to the dependencies in your composer.json, or if you want to install BundleFuSilexServiceProvider as standalone, go to the main directory and run:, (*3)

$ wget http://getcomposer.org/composer.phar 
$ php composer.phar install

You can then use the composer-generated autoloader to access the BundleFuSilexServiceProvider classes:, (*4)

<?php
require 'vendor/autoload.php';
?>

Usage

Register the BundleFuServiceProvider to your Silex application:, (*5)

register(new DotsUnited\BundleFu\Silex\BundleFuServiceProvider());
?>

You can now use the bundlefu.factory service to create bundles in your application:, (*6)

<?php
$bundle = $app['bundlefu.factory']->createBundle();
?>

To configure the factory, you can pass the bundlefu.options and bundlefu.filters parameters:, (*7)

<?php
$app->register(new DotsUnited\BundleFu\Silex\BundleFuServiceProvider(), array(
    'bundlefu.options' => array(
        'bypass' => true
    ),
    'bundlefu.filters' => array(
        'js_closure_compiler' => new \DotsUnited\BundleFu\Filter\ClosureCompilerService()
    )
));
?>

Twig

The service provider automatically registers the BundleFu twig extension if Twig is available (ensure that you register the BundleFuServiceProvider after the TwigServiceProvider in your application)., (*8)

If do not want the extension to be registered, set bundlefu.twig.extension with the value false as a parameter:, (*9)

<?php
$app->register(new DotsUnited\BundleFu\Silex\BundleFuServiceProvider(), array(
    'bundlefu.twig.extension' => false
));
?>

License

BundleFuSilexServiceProvider is released under the MIT License., (*10)

The Versions

06/02 2015

dev-master

9999999-dev https://github.com/dotsunited/BundleFuSilexServiceProvider

Silex service provider for BundleFu

  Sources   Download

MIT

The Requires

 

The Development Requires

service css javascript silex asset provider bundling

06/02 2015

v1.0.0

1.0.0.0 https://github.com/dotsunited/BundleFuSilexServiceProvider

Silex service provider for BundleFu

  Sources   Download

MIT

The Requires

 

The Development Requires

service css javascript silex asset provider bundling

27/03 2012

0.9.1

0.9.1.0 https://github.com/dotsunited/BundleFuSilexServiceProvider

Silex service provider for BundleFu

  Sources   Download

New BSD

The Requires

 

service css javascript silex asset provider bundling

29/02 2012

0.9.0

0.9.0.0 https://github.com/dotsunited/BundleFuSilexServiceProvider

Twig extension for BundleFu

  Sources   Download

New BSD

The Requires

 

service css javascript silex asset provider bundling