PHPackages                             chh/pipe-silex - 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. chh/pipe-silex

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

chh/pipe-silex
==============

Silex Extension which integrates an Asset Pipeline

v0.1.1(13y ago)43822MITt PHP

Since Dec 28Pushed 12y ago1 watchersCompare

[ Source](https://github.com/CHH/pipe-silex)[ Packagist](https://packagist.org/packages/chh/pipe-silex)[ RSS](/packages/chh-pipe-silex/feed)WikiDiscussions master Synced 2d ago

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

Pipe Service Provider for Silex
===============================

[](#pipe-service-provider-for-silex)

Install
-------

[](#install)

If you haven't got [Composer](http://getcomposer.org):

```
wget http://getcomposer.org/composer.phar

```

Then install with:

```
php composer.phar require chh/pipe-silex:*@dev

```

Usage
-----

[](#usage)

### Configuration Options

[](#configuration-options)

- `pipe.root`: Use the default load path setup, based on this root directory. The paths `javascripts/`, `stylesheets/`, `vendor/javascripts` and `vendor/stylesheets` are added to your load path by default.
- `pipe.load_path` (default `[]`): Create a custom load path setup by setting this as array, e.g. `$app['pipe.load_path'] = [__DIR__ . '/css', __DIR__ . '/js']`.
- `pipe.use_precompiled` (default: `false`): Point links generated with the helpers to precompiled versions of assets.
- `pipe.use_precompiled_gzip` (default: `true`): Use gzipped precompiled assets if possible.
- `pipe.precompile` (default: `['application.js', 'application.css']`): List of files which should be dumped to the filesystem when the `precompile` method was invoked.
- `pipe.precompile_directory`Output path for the `precompile` method.
- `pipe.js_compressor` (default: `''`): Javascript compressor for use on precompile. Available is `yuglify_js`or `uglify_js`.
- `pipe.css_compressor` (default: `''`): CSS compressor which is used on precompile, Available is only `yuglify_css`.
- `pipe.debug` (default: `false`): Skip compression of assets.
- `pipe.prefix` (default: `''`): Asset link prefix, which is used when precompiled assets are used.
- `pipe.manifest` (default: `''`): Location of the `manifest.json` created on precompile. Usually found inside the `pipe.precompile_directory`.

### Services

[](#services)

- `pipe`: Provides helper methods for precompiling and linking to assets.
    - `precompile()`: Precompiles assets set in `pipe.precompile` to static files which include a cache buster, and the `manifest.json`.
    - `assetLink($logicalPath)`: Creates a URL to the given asset. Respects `pipe.use_precompiled`, and either points to the dynamic asset generation, or to static files.
    - `assetLinkTag($logicalPath)`: Uses `assetLink` to create `` or `` tags depending on the Content Type of the asset.
- `pipe.environment`: `Pipe\Environment` instance which is used by the `pipe` service.

### Twig Extensions

[](#twig-extensions)

- `pipe_link(logicalPath)`: Same as the `pipe` service's `assetLink`helper.
- `pipe_link_tag(logicalPath)`: Same as the service's `assetLinkTag`helper.

License
-------

[](#license)

The MIT License

Copyright (c) 2012 Christoph Hochstrasser

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.5% 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 ~62 days

Total

4

Last Release

4696d ago

Major Versions

v0.1.1 → v1.0.0-alpha12013-01-10

### Community

Maintainers

![](https://www.gravatar.com/avatar/f1d7b35fc21b94c4c392b0198b3f3a9060e56b0c962fab4226ad5699cade7052?d=identicon)[chh](/maintainers/chh)

---

Top Contributors

[![CHH](https://avatars.githubusercontent.com/u/16783?v=4)](https://github.com/CHH "CHH (21 commits)")[![davedevelopment](https://avatars.githubusercontent.com/u/61351?v=4)](https://github.com/davedevelopment "davedevelopment (2 commits)")[![fran6co](https://avatars.githubusercontent.com/u/726088?v=4)](https://github.com/fran6co "fran6co (1 commits)")

---

Tags

assetssilex

### Embed Badge

![Health badge](/badges/chh-pipe-silex/health.svg)

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

###  Alternatives

[kriswallsmith/assetic

Asset Management for PHP

3.7k48.9M161](/packages/kriswallsmith-assetic)[markstory/asset_compress

An asset compression plugin for CakePHP. Provides file concatenation and a flexible filter system for preprocessing and minification.

3761.0M11](/packages/markstory-asset-compress)[stolz/assets

An ultra-simple-to-use assets management library

296519.2k8](/packages/stolz-assets)[backpack/basset

Dead-simple way to load CSS or JS assets only once per page, when using Laravel 10+.

202832.4k6](/packages/backpack-basset)[igorw/config-service-provider

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

215636.5k13](/packages/igorw-config-service-provider)[assetic/framework

Asset Management for PHP

1001.4M20](/packages/assetic-framework)

PHPackages © 2026

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