There is no license information available for the latest version (1.0.3) of this package.

Simple package to combine and minify CSS/JS

1.0.3 2014-08-21 21:04 UTC


This package allows you to combine and minify CSS and JS files. This will improve your website's performance and decrease the HTTP request overhead.

Let's get started

First we need to fetch all the files, we can do this by adding the following line to composer.json in your app's root in the "autoload" section. "giovannik/laravel-minify": "1.0.*"

Now that the package's files were pulled we have to dump the autoloader

php artisan dump-autoload

Add the service provider and alias to app/config/app.php

Add the following line to the providers array:


Now add the alias to the aliases array:

'Minify' => 'GiovanniK\Minify\Minify'

Using the minifier

Using the package is very simple, all you have to do is run a function and pass files to the function.

Minify::combine(['file.css', 'file2.css'], '.css')

Minify::combine(['file.js', 'file2.js'], '.js')