PHPackages                             codesleeve/asset-pipeline - 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. codesleeve/asset-pipeline

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

codesleeve/asset-pipeline
=========================

A very simple and easy to use asset pipeline for laravel 4.

v2.1.0(11y ago)485147.5k↓37.5%53[49 issues](https://github.com/CodeSleeve/asset-pipeline/issues)[1 PRs](https://github.com/CodeSleeve/asset-pipeline/pulls)5MITPHPPHP &gt;=5.3.0

Since Jul 29Pushed 8y ago21 watchersCompare

[ Source](https://github.com/CodeSleeve/asset-pipeline)[ Packagist](https://packagist.org/packages/codesleeve/asset-pipeline)[ RSS](/packages/codesleeve-asset-pipeline/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (9)Versions (19)Used By (5)

Asset Pipeline (depreciated)
============================

[](#asset-pipeline-depreciated)

The new Laravel 5 feature called [Elixir](http://laravel.com/docs/5.0/elixir) which runs on gulp should help you manage your assets. There are no plans (from us at Codesleeve) to continue development on this project to include L5 support. Asset pipeline will continue to accept community pull requests. Please feel free to contribute if you'd like.

What is Asset Pipeline?
-----------------------

[](#what-is-asset-pipeline)

For those of you familiar with Rails asset pipeline and sprockets, you will hopefully feel right at home using this package.

For those of you unfamiliar with Rails asset pipeline and sprockets, I suggest reading [introduction to directives](#introduction-to-directives).

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

[](#installation)

Begin by installing this package through Composer. Edit your project's `composer.json` file to require `codesleeve/asset-pipeline`.

It might look something like:

```
  "require": {
    "laravel/framework": "4.1.*",
    "codesleeve/asset-pipeline": "dev-master"
  }
```

Next, update Composer from the Terminal:

```
    composer update
```

Once this operation completes, add the service provider. Open `app/config/app.php`, add the following items to the providers array.

```
    'Codesleeve\AssetPipeline\AssetPipelineServiceProvider',
```

Next optionally, ensure your environment is setup correctly because by default the asset pipeline will cache and and minify assets on a production environment.

Inside `bootstrap/start.php`

```
  $env = $app->detectEnvironment(array(
    'local' => array('your-machine-name'),
  ));
```

Run the `artisan` command from the Terminal for the `assets:setup` command. This will create the default folder structure for you.

```
    php artisan assets:setup
```

Usage
-----

[](#usage)

Place these lines into your Laravel view/layout

```

```

This will generate a listing of script and link tags for all the dependencies listed in `app/assets/application.js` and `app/assets/application.css`.

#### Parameters

[](#parameters)

If you'd like to control which manifest file you'd like to use and even put attributes on the tags. This follows the same pattern rails uses, so for example, if we have this:

```
