PHPackages                             matthecat/silex-asset-provider - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. matthecat/silex-asset-provider

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

matthecat/silex-asset-provider
==============================

Asset service provider for Silex

1.1.0(10y ago)2636MITPHPPHP &gt;=5.4.0

Since Aug 4Pushed 9y agoCompare

[ Source](https://github.com/MatTheCat/silex-asset-provider)[ Packagist](https://packagist.org/packages/matthecat/silex-asset-provider)[ RSS](/packages/matthecat-silex-asset-provider/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (3)Used By (0)

[![Build Status](https://camo.githubusercontent.com/387fac161ec88273653962010244af15e9e2adc9c35d99edfb2b9f16b776f8e1/68747470733a2f2f7472617669732d63692e6f72672f4d61745468654361742f73696c65782d61737365742d70726f76696465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/MatTheCat/silex-asset-provider)

⚠️
==

[](#warning)

[Silex 2 is out](https://twitter.com/fabpot/status/732848312819318784)!

You can still use this provider with Silex 1 but you'll have to switch to the native [`AssetServiceProvider`](http://silex.sensiolabs.org/doc/master/providers/asset.html) when upgrading.

AssetServiceProvider
====================

[](#assetserviceprovider)

The *AssetServiceProvider* leverages the [Symfony asset component](http://symfony.com/doc/current/components/asset/introduction.html) for Silex.

Parameters
----------

[](#parameters)

- **assets**: Packages configuration.

The **assets** parameter follows the same convention than the [Symfony Framework Bundle assets configuration](http://symfony.com/doc/current/reference/configuration/framework.html#assets). 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
--------

[](#services)

- **asset.packages**: An instance of `Symfony\Component\Asset\Packages`.

Registering
-----------

[](#registering)

```
use MatTheCat\Asset\Silex\Provider\AssetServiceProvider;

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

Twig extension
--------------

[](#twig-extension)

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

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~252 days

Total

2

Last Release

3682d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/46a7022efdf909e2834e60f681ee1d2206c1591aaead2ac61c3493259c1cd3bf?d=identicon)[MatTheCat](/maintainers/MatTheCat)

---

Top Contributors

[![MatTheCat](https://avatars.githubusercontent.com/u/1898254?v=4)](https://github.com/MatTheCat "MatTheCat (8 commits)")

---

Tags

assetsilex

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/matthecat-silex-asset-provider/health.svg)

```
[![Health](https://phpackages.com/badges/matthecat-silex-asset-provider/health.svg)](https://phpackages.com/packages/matthecat-silex-asset-provider)
```

###  Alternatives

[igorw/config-service-provider

A config ServiceProvider for Silex with support for php, json and yaml.

215636.5k13](/packages/igorw-config-service-provider)[franmomu/silex-pagerfanta-provider

Silex ServiceProvider for Pagerfanta Library

1312.1k](/packages/franmomu-silex-pagerfanta-provider)[emanueleminotto/faker-service-provider

Faker Service Provider for Silex

162.9k](/packages/emanueleminotto-faker-service-provider)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
