承接 matthecat/silex-asset-provider 相关项目开发

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

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

matthecat/silex-asset-provider

最新稳定版本:1.1.0

Composer 安装命令:

composer require matthecat/silex-asset-provider

包简介

Asset service provider for Silex

关键字:

README 文档

README

Build Status

⚠️

Silex 2 is out!

You can still use this provider with Silex 1 but you'll have to switch to the native AssetServiceProvider when upgrading.

AssetServiceProvider

The AssetServiceProvider leverages the Symfony asset component for Silex.

Parameters

  • assets: Packages configuration.

The assets parameter follows the same convention than the Symfony Framework Bundle assets configuration. A package configuration is defined by an associative array with the following optional keys:

  • base_path
  • base_urls
  • version
  • version_format

These keys under assets define the default package configuration.

You can add packages adding a packages key under assets which value is an associative array with packages name as keys and their configuration as values.

Services

  • asset.packages: An instance of Symfony\Component\Asset\Packages.

Registering

use MatTheCat\Asset\Silex\Provider\AssetServiceProvider;

$app->register(new AssetServiceProvider());

Twig extension

You'll be able to use Twig asset function by requiring symfony/twig-bridge starting from 2.7.0.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-08-01