承接 dotsunited/bundlefu-silex-service-provider 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

dotsunited/bundlefu-silex-service-provider

Composer 安装命令:

composer require dotsunited/bundlefu-silex-service-provider

包简介

Silex service provider for BundleFu

README 文档

README

Build Status

The BundleFuSilexServiceProvider integrates BundleFu into the Silex micro-framework.

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:

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

You can then use the composer-generated autoloader to access the BundleFuSilexServiceProvider classes:

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

Usage

Register the BundleFuServiceProvider to your Silex application:

<?php
$app = new \Silex\Application();

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

You can now use the bundlefu.factory service to create bundles in your application:

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

To configure the factory, you can pass the bundlefu.options and bundlefu.filters parameters:

<?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).

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

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

License

BundleFuSilexServiceProvider is released under the MIT License.

统计信息

  • 总下载量: 949
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 8
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2012-02-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固