berbecki / laless by berbecki

Simple LESS compiler for Laravel
1,416
0
1
Package Data
Maintainer Username: berbecki
Maintainer Contact: berbecki@gmail.com (Jacek Berbecki)
Package Create Date: 2015-01-24
Package Last Update: 2015-02-11
Language: PHP
License: MIT
Last Refreshed: 2024-04-19 15:11:11
Package Statistics
Total Downloads: 1,416
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 1
Total Forks: 0
Total Open Issues: 1

LaLess (Laravel4 Package)

LaLess is a Simple LESS compiler for Laravel 4 based on a PHP port (Less.php / oyejorge/less.php) of the official LESS processor http://lesscss.org.

Quick start

Required setup

In the require key of your composer.json app file add the following line:

"berbecki/laless": "dev-master"

Then, run in terminal the Composer update comand:

$ composer.phar update

In your config/app.php add line 'Berbecki\Laless\ServiceProvider' to the end of the $providers array

'providers' => array(

    'Illuminate\Foundation\Providers\ArtisanServiceProvider',
    'Illuminate\Auth\AuthServiceProvider',
    ...
    'Berbecki\Laless\ServiceProvider',

),

You are ready to go! Your application will now compile your LESS files when needed.

Configuration (is optional but recommended)

By default, Laless will consider the directory public/assets/less as the input and public/assets/css for the output. But if you wish to change these values simply publish the package config files:

$ php artisan config:publish berbecki/laless

and define the origin and destination keys in config/packages/berbecki/laless/config.php. For example:

// config/packages/berbecki/laless/config.php

// Paths should be relative to app folder.
'origin'        => 'mylessfiles',
'destination'   => '../public/mycss',

Console usage

If for some reason you need to force the compilation of LESS files (ex: in production environment), its possible through the command:

$ php artisan laless:compile

License

Laless is a free software distributed under the terms of the MIT license

Aditional information

If you have a questions, feel free to contact with me.