PHPackages                             shineunited/silex-assets - 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. [Templating &amp; Views](/categories/templating)
4. /
5. shineunited/silex-assets

ActiveLibrary[Templating &amp; Views](/categories/templating)

shineunited/silex-assets
========================

2.0.0(8y ago)013MITPHPPHP &gt;=5.5.9

Since May 17Pushed 8y ago3 watchersCompare

[ Source](https://github.com/shineunited/silex-assets)[ Packagist](https://packagist.org/packages/shineunited/silex-assets)[ RSS](/packages/shineunited-silex-assets/feed)WikiDiscussions master Synced 2mo ago

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

Silex Assets
============

[](#silex-assets)

A Silex package for managing local and remote static assets.

[![Latest Stable Version](https://camo.githubusercontent.com/d75d7f6956117f5cc674103c7a992474670c50d0bb0b7b0af35635442265cd5b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7368696e65756e697465642f73696c65782d6173736574732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/shineunited/silex-assets)[![Minimum PHP Version](https://camo.githubusercontent.com/0aa7445f06e06d72b9552b4ace117e3765a60fa64d6c973cac177557fd20368f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230352e352d3838393242462e7376673f7374796c653d666c61742d737175617265)](https://php.net/)[![Build Status](https://camo.githubusercontent.com/0d4ddc0dee595ce2b52f1dabca6de3da35563b17b629753af6427c8bc15e2272/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7368696e65756e697465642f73696c65782d6173736574732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/shineunited/silex-assets)

Installation
------------

[](#installation)

The recommended way to install silex-assets is through composer:

```
$ composer require shineunited/silex-assets
```

Configuration
-------------

[](#configuration)

```
require_once(__DIR__ . '/../vendor.autoload.php');

use Silex\Application;
use ShineUnited\Silex\Assets\AssetManagerServiceProvider;

$app->register(new AssetManagerServiceProvider(), [
	'assets.path' => '/path/to/assets/'
]);
```

Usage
-----

[](#usage)

Accessing prefixed assets

```
echo $app['assets']->lookup('my/asset.txt');
// returns: /path/to/assets/my/asset.txt
```

Mapping additional assets

```
$app['assets']->map('jquery.js', 'https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js');

echo $app['assets']->lookup('jquery.js');
// returns: https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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 ~0 days

Total

4

Last Release

3282d ago

Major Versions

1.0.x-dev → 2.0.02017-05-17

PHP version history (2 changes)1.0.0PHP &gt;=5.5

2.0.0PHP &gt;=5.5.9

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8301342?v=4)[Shine United](/maintainers/shineunited)[@shineunited](https://github.com/shineunited)

---

Top Contributors

[![rmlasseter](https://avatars.githubusercontent.com/u/5660821?v=4)](https://github.com/rmlasseter "rmlasseter (12 commits)")

---

Tags

twigassetssilex

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/shineunited-silex-assets/health.svg)

```
[![Health](https://phpackages.com/badges/shineunited-silex-assets/health.svg)](https://phpackages.com/packages/shineunited-silex-assets)
```

###  Alternatives

[odan/twig-assets

Caching and compression for Twig assets (JavaScript and CSS).

2223.0k4](/packages/odan-twig-assets)

PHPackages © 2026

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