PHPackages                             hx/fusion-php - 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. hx/fusion-php

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

hx/fusion-php
=============

Fusion PHP Asset Pipeline

v1.0.7(12y ago)445.5kApache License 2.0PHPPHP &gt;=5.4

Since Jan 18Pushed 11y ago1 watchersCompare

[ Source](https://github.com/hx/fusion-php)[ Packagist](https://packagist.org/packages/hx/fusion-php)[ RSS](/packages/hx-fusion-php/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (9)Used By (0)

Fusion for PHP
==============

[](#fusion-for-php)

Fusion is a bare-bones asset pipelining library for PHP. It offers:

- Simple dependency in which assets can **require** other assets.
- Preprocessing of [CoffeeScript](http://coffeescript.org), [SASS/SCSS](http://sass-lang.com) and [LESS](http://www.lesscss.org) files.
- Compilation of large numbers of files into single files with minification via [UglifyJS](https://github.com/mishoo/UglifyJS2).

Dependencies
------------

[](#dependencies)

Specify dependencies by **requiring** other files in comments at the tops of your asset files:

```
/**
 *= require brother.js
 *= require ../uncle/cousin.js
 */
```

You can also require globs of files (note the alternate syntax so that `*/` doesn't break the comment):

```
//= require_glob=children/*
//= require_glob=children/*/*
```

Generally, you can use either style of comments, as long as the format supports it. For example, vanilla CSS doesn't support single-line `//` comments.

Processing
----------

[](#processing)

```
