{"id":13669443,"url":"https://github.com/efficiently/larasset","last_synced_at":"2025-04-05T02:31:13.935Z","repository":{"id":56975505,"uuid":"21614563","full_name":"efficiently/larasset","owner":"efficiently","description":"Larasset is a library for Laravel 4, 5.0, 5.1, 5.2 and 5.3 which manage assets in an easy way","archived":false,"fork":false,"pushed_at":"2017-05-23T08:42:41.000Z","size":92,"stargazers_count":67,"open_issues_count":3,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-20T21:19:19.146Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://laravel.io/forum/07-18-2014-package-larasset-asset-pipeline-the-ultimate-front-end-tool","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/efficiently.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-08T13:54:52.000Z","updated_at":"2021-05-24T13:12:42.000Z","dependencies_parsed_at":"2022-08-21T11:50:52.747Z","dependency_job_id":null,"html_url":"https://github.com/efficiently/larasset","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efficiently%2Flarasset","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efficiently%2Flarasset/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efficiently%2Flarasset/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efficiently%2Flarasset/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/efficiently","download_url":"https://codeload.github.com/efficiently/larasset/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247279396,"owners_count":20912877,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T08:01:13.746Z","updated_at":"2025-04-05T02:31:13.412Z","avatar_url":"https://github.com/efficiently.png","language":"PHP","readme":"Larasset\n========\n\n[![Build Status](https://travis-ci.org/efficiently/larasset.svg?branch=1.3)](https://travis-ci.org/efficiently/larasset)\n\nThe Asset Pipeline for **Laravel 5.1, 5.2 \u0026 5.3** !\n\nThe asset pipeline provides a framework to concatenate and minify or compress\nJavaScript and CSS assets. It also adds the ability to write these assets in\nother languages and pre-processors such as CoffeeScript, LESS, Sass and EJS.\n\nFor [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)\n\nFor [Laravel 5.0](http://laravel.com/docs/5.0) supports see [Larasset 1.0 branch](https://github.com/efficiently/larasset/tree/1.0)\n\nFor a more complete description of this package, you can read the Wiki docs:\n* The [Asset Pipeline](https://github.com/efficiently/larasset/wiki/Asset-pipeline) Guide\n* [Working with Ajax/JavaScript in Laravel](https://github.com/efficiently/larasset/wiki/Working-with-JavaScript-and-Larasset) Guide\n\nExamples of Larasset usage.\n\n- `php artisan larasset:precompile`: Precompile assets of your application, useful for your production environment\n- `php artisan larasset:serve`:      Launch Larasset's server for serving assets, useful for your development environment\n- `php artisan server`:              Serve your Laravel application on the PHP development server and also the Larasset's server for serving assets\n\nDemo application\n----------------\n\nYou can see this package in action with this [**online demo**](http://larasset.herokuapp.com/messages).\nAnd you can grab the source code of this demo [here](https://github.com/efficiently/laravel_larasset_app/tree/bootstrap-l5.1).\n\nPrerequisites\n-------------\n\nYou must [install Node.js](http://nodejs.org) on your computer (development environment only).\n\nThis package is **only** compatible with **PHP \u003e= 5.5** and **Laravel \u003e= 5.1** framework.\n\nInstallation\n------------\n\n### Install and config Larasset package\n\n1. In the `composer.json`, replace the line `\"minimum-stability\": \"stable\"` by:\n\n    ```javascript\n        \"minimum-stability\": \"dev\"\n    ```\n\n2. Install Larasset package with composer:\n\n    ```sh\n    composer require efficiently/larasset:1.2.*\n    ```\n\n3. Turn on your application debug mode, create or edit the `config/app.php` file:\n\n    ```php\n    \u003c?php\n\n    return [\n        'debug' =\u003e true,\n        // Others config options....\n    ];\n    ```\n\n    Note: It is strongly recommended that you turn off error detail in your production environment.\n\n4. Add these services providers to `config/app.php`:\n\n    ```php\n            'Collective\\Html\\HtmlServiceProvider',\n            'Efficiently\\Larasset\\LarassetServiceProvider',\n            'Efficiently\\JqueryLaravel\\JqueryLaravelServiceProvider',\n    ```\n\n5. Add these alias (facades) to your Laravel `config/app.php` file:\n\n    ```php\n           'Form' =\u003e 'Collective\\Html\\FormFacade',\n           'HTML' =\u003e 'Collective\\Html\\HtmlFacade',\n           'Asset' =\u003e 'Efficiently\\Larasset\\Facades\\Asset',\n    ```\n\n6. You can now add the this security Middleware to your `app/Http/Kernel.php` file:\n\n    ```php\n            'Efficiently\\JqueryLaravel\\VerifyJavascriptResponse',\n    ```\n\n7. You will need install some [Node.js](http://nodejs.org/) modules in order to run these Larasset commands:\n\n    ```sh\n    npm install -g larasset-js\n    ```\n\n8. Finally run `php artisan larasset:setup`.\n\n    The rest of the installation depends on whether the asset pipeline is being used.\n\nAssets middleware server\n------------------------\n\nRun:\n\n    php artisan larasset:serve\n\nNOTICE: You should use it **only** in a development/local environment\n\n\nPrecompiling assets (Manifest usage)\n------------------------------------\n\nRun:\n\n    php artisan larasset:precompile\n\nNOTICE: You are encouraged to use it in a production environment,\nfor more informations, **read the next section**.\n\n\nDevelopment VS Production mode\n------------------------------\n\nBy default Larasset is running in _development_ mode. That means that it will\nrecompile (server) any changed asset on demand. Also it's not compressing\nJavaScript and/or Stylesheets in development mode. To run Larraset's server and\nprecompiler in production-ready mode, use `--assets-env production` command line\noption, like so:\n\n    php artisan larasset:precompile --assets-env production\n\n\nChangelog\n---------\n### [1.3.x](https://github.com/efficiently/larasset/tree/1.3)\n * Laravel 5.3 support!\n\n### [1.2.0](https://github.com/efficiently/larasset/tree/1.2.0)\n * Laravel 5.2 support!\n\n### [1.1.0](https://github.com/efficiently/larasset/tree/1.1.0)\n * Laravel 5.1 support!\n * CoffeeScript compile now the JavaScript without the top-level function safety wrapper (non-bare mode) via [`larasset-js` 1.2.0](https://github.com/efficiently/larasset-js/tree/1.2.0)\n * [ECMAScript 2015](http://ecma-international.org/ecma-262/6.0) (ES6) support with [Babel](http://babeljs.io/) via [`larasset-js` 1.1.1](https://github.com/efficiently/larasset-js/tree/1.1.1)\n * Add the `humanize()` function helper to fix the `image_tag()` helper (fix [#15](https://github.com/efficiently/larasset/issues/15)).\n * Add a `larasset.port` config option.\n  For handling correctly the `--larasset-port` option of the `php artisan server` command.\n  Useful for your development environment when you run the assets server.\n  The default port value is `3000`.\n  You can change it in the `config/larasset.php` file of your Laravel application.\n * Replace the deprecated [`illuminate/html`](https://github.com/illuminate/html) package by the [`laravelcollective/html`](https://github.com/LaravelCollective/html) package.\n * **Upgrade Notes** \u003csmall\u003e(if you used previously this package with Laravel 4.x or 5.0)\u003c/small\u003e:  \n   * You should replace in the `config/app.php` file of your Laravel application:\n     1. `'Illuminate\\Html\\HtmlServiceProvider',` by `'Collective\\Html\\HtmlServiceProvider',`\n     2. `'Form' =\u003e 'Illuminate\\Html\\FormFacade',` by `'Form' =\u003e 'Collective\\Html\\FormFacade',`\n     3. `'HTML' =\u003e 'Illuminate\\Html\\HtmlFacade',` by `'HTML' =\u003e 'Collective\\Html\\HtmlFacade',`\n\n### [1.0.2](https://github.com/efficiently/larasset/tree/1.0.2)\n  * Fix PHP 5.4 support.\n\n### [1.0.1](https://github.com/efficiently/larasset/tree/1.0.1)\n  * Backporting the `humanize()` function helper to fix the `image_tag()` helper (fix #15).\n\n### [1.0.0](https://github.com/efficiently/larasset/tree/1.0.0)\n * Laravel 5.0 support!\n\n### [0.9.8](https://github.com/efficiently/larasset/tree/0.9.8)\n * Backporting the `humanize()` function helper to fix the `image_tag()` helper (fix #15).\n\n### [0.9.7](https://github.com/efficiently/larasset/tree/0.9.7)\n * Add an option to disable Source Mapping.\n\n### [0.9.6](https://github.com/efficiently/larasset/tree/0.9.6)\n  * **Breaking changes:**\n  The `--environment` command line option is renamed to `--assets-env`. Because there was some conflicts with the Laravel command line option `--env`. And `larasset-environment` command line option is renamed to `--larasset-env`.\n  See issue [#6](https://github.com/efficiently/larasset/issues/6) for more information.\n\nCredits\n-------\n\n* The original [Asset Pipeline](https://github.com/rails/sprockets-rails) (Sprockets) from the Ruby on Rails framework.\n* A Node.js port of the Asset Pipeline: [Mincer](https://github.com/nodeca/mincer)\n* A  PHP port of the [Asset Pipeline](https://github.com/CodeSleeve/asset-pipeline)\n\n\nAcknowledgements\n----------------\n\nReleased under the MIT License.\n\n#### This is beta-quality software\nIt works well according to our tests. The internal API may change and other features will be added.\nWe are working to make Larasset production quality software.\n","funding_links":[],"categories":["PHP"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fefficiently%2Flarasset","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fefficiently%2Flarasset","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fefficiently%2Flarasset/lists"}