PHPackages                             99designs/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. 99designs/silex-assets

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

99designs/silex-assets
======================

Asset pipeline using make

v1.1.0(11y ago)44682[1 issues](https://github.com/99designs/silex-assets/issues)MITPHPPHP &gt;=5.3.3

Since Feb 16Pushed 11y ago6 watchersCompare

[ Source](https://github.com/99designs/silex-assets)[ Packagist](https://packagist.org/packages/99designs/silex-assets)[ RSS](/packages/99designs-silex-assets/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (3)Versions (7)Used By (0)

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

[](#silex-assets)

Silex Assets aims to be the most minimal possible asset pipeline for using sass/requirejs in a Silex project.

Rather than depend on Gulp/Grunt, a Makefile is provided, or a set of Makefile includes to include in your project.

How does it work?
-----------------

[](#how-does-it-work)

All asset compilation is done via the command-line. This means your app is ultra-lean, even in development. All assets are based around a `dist` directory, which is located in your web tree. A Makefile is used to generate a `dist/.manifest` file which contains what files have been generated and checksums for their contents.

The twig extension included then allows twig templates to reference files in dist, along with the checksum from the manifest as a cache-buster.

This looks like `` where the number is a CRC32 checksum built in the `make manifest` target.

During development you can run `make watch` and changing sass will be re-compiled, a new manifest will be built and if you have the LiveReload plugin your browser will update.

Installing
----------

[](#installing)

```
composer require 99designs/silex-assets
```

Then add the provider to your app.php file:

```
