2017 © Pedro Peláez
 

library silex-asset-provider

Asset service provider for Silex

image

matthecat/silex-asset-provider

Asset service provider for Silex

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 34 % Grown

The README.md

Build Status, (*1)

:warning:

Silex 2 is out!, (*2)

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

AssetServiceProvider

The AssetServiceProvider leverages the Symfony asset component for Silex., (*4)

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:, (*5)

  • base_path
  • base_urls
  • version
  • version_format

These keys under assets define the default package configuration., (*6)

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., (*7)

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., (*8)

The Versions

23/05 2016

dev-master

9999999-dev

Asset service provider for Silex

  Sources   Download

MIT

The Requires

 

The Development Requires

silex asset

12/04 2016

1.1.0

1.1.0.0

Asset service provider for Silex

  Sources   Download

MIT

The Requires

 

The Development Requires

silex asset

04/08 2015

1.0.0

1.0.0.0

Asset service provider for Silex

  Sources   Download

MIT

The Requires

 

The Development Requires

silex asset