PHPackages                             efficiently/larasset - 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. efficiently/larasset

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

efficiently/larasset
====================

Larasset is a library for Laravel 5 which manage assets in an easy way.

1.2.0(9y ago)684.8k5[3 issues](https://github.com/efficiently/larasset/issues)MITPHPPHP &gt;=5.4.0

Since Aug 12Pushed 8y ago2 watchersCompare

[ Source](https://github.com/efficiently/larasset)[ Packagist](https://packagist.org/packages/efficiently/larasset)[ RSS](/packages/efficiently-larasset/feed)WikiDiscussions master Synced 1w ago

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

Larasset
========

[](#larasset)

[![Build Status](https://camo.githubusercontent.com/1e4250ba00d2ad4be00337650fb069f8fc80c7623cb5d3949bcfe06cbe5a036d/68747470733a2f2f7472617669732d63692e6f72672f656666696369656e746c792f6c617261737365742e7376673f6272616e63683d312e33)](https://travis-ci.org/efficiently/larasset)

The Asset Pipeline for **Laravel 5.1, 5.2 &amp; 5.3** !

The asset pipeline provides a framework to concatenate and minify or compress JavaScript and CSS assets. It also adds the ability to write these assets in other languages and pre-processors such as CoffeeScript, LESS, Sass and EJS.

For [Laravel 4.1 or 4.2](http://laravel.com/docs/4.2) supports see [Larasset 0.9 branch](https://github.com/efficiently/larasset/tree/0.9)

For [Laravel 5.0](http://laravel.com/docs/5.0) supports see [Larasset 1.0 branch](https://github.com/efficiently/larasset/tree/1.0)

For a more complete description of this package, you can read the Wiki docs:

- The [Asset Pipeline](https://github.com/efficiently/larasset/wiki/Asset-pipeline) Guide
- [Working with Ajax/JavaScript in Laravel](https://github.com/efficiently/larasset/wiki/Working-with-JavaScript-and-Larasset) Guide

Examples of Larasset usage.

- `php artisan larasset:precompile`: Precompile assets of your application, useful for your production environment
- `php artisan larasset:serve`: Launch Larasset's server for serving assets, useful for your development environment
- `php artisan server`: Serve your Laravel application on the PHP development server and also the Larasset's server for serving assets

Demo application
----------------

[](#demo-application)

You can see this package in action with this [**online demo**](http://larasset.herokuapp.com/messages). And you can grab the source code of this demo [here](https://github.com/efficiently/laravel_larasset_app/tree/bootstrap-l5.1).

Prerequisites
-------------

[](#prerequisites)

You must [install Node.js](http://nodejs.org) on your computer (development environment only).

This package is **only** compatible with **PHP &gt;= 5.5** and **Laravel &gt;= 5.1** framework.

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

[](#installation)

### Install and config Larasset package

[](#install-and-config-larasset-package)

1. In the `composer.json`, replace the line `"minimum-stability": "stable"` by:

    ```
        "minimum-stability": "dev"
    ```
2. Install Larasset package with composer:

    ```
    composer require efficiently/larasset:1.2.*
    ```
3. Turn on your application debug mode, create or edit the `config/app.php` file:

    ```
