PHPackages                             zizaco/lessy - 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. zizaco/lessy

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

zizaco/lessy
============

Lessy is a simple and lean LESS compiler for Laravel

v0.7(13y ago)2116.7k7[2 PRs](https://github.com/Zizaco/lessy/pulls)MITPHPPHP &gt;=5.3.0

Since Jan 17Pushed 12y ago1 watchersCompare

[ Source](https://github.com/Zizaco/lessy)[ Packagist](https://packagist.org/packages/zizaco/lessy)[ RSS](/packages/zizaco-lessy/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (6)Used By (0)

Lessy (Laravel4 Package)
========================

[](#lessy-laravel4-package)

[![Confide Poster](https://camo.githubusercontent.com/f407e8d6e9a30eea348bf461daa2863b05602f076df452ec596ea66f6e111794/68747470733a2f2f646c2e64726f70626f782e636f6d2f752f31323530363133372f6c6962735f62756e646c65732f6c657373792e706e67)](https://camo.githubusercontent.com/f407e8d6e9a30eea348bf461daa2863b05602f076df452ec596ea66f6e111794/68747470733a2f2f646c2e64726f70626f782e636f6d2f752f31323530363133372f6c6962735f62756e646c65732f6c657373792e706e67)

[![ProjectStatus](https://camo.githubusercontent.com/32a98a2c475851208709bccf22744d3ade1c68cce958853c21bcce7d77b90c27/687474703a2f2f7374696c6c6d61696e7461696e65642e636f6d2f5a697a61636f2f6c657373792e706e67)](http://stillmaintained.com/Zizaco/lessy)

Lessy is a simple and lean LESS compiler for Laravel.

In summary, Lessy will compile the files contained in `app/less` to the `public/asset/css` directory respecting any existing directory structure. For example: if you have `app/less/admin/panel.less` lessy will compile it to `public/asset/css/admin/panel.css` when the application receives a request. You can change the input and output directories trough configuration (see below).

The automatic compilation occurs only if the output file doesn't exist or it's an older version than the input file.

**Important:**Note that the **automatic compilation does not occur when the application is in 'production' environment**. So make sure to [change the application environment](http://four.laravel.com/docs/configuration#environment-configuration "Environment Configuration") to `'local'` or something that is not `'production'` if you need Lessy to automagically compile your LESS files.

Features
--------

[](#features)

**Current:**

- Automagically compiles LESS files when not in production
- Respects directory structure when compiling
- Compile LESS files trough `artisan lessy:compile`

Quick start
-----------

[](#quick-start)

### Required setup

[](#required-setup)

In the `require` key of `composer.json` file add the following

```
"zizaco/lessy": "dev-master"

```

Run the Composer update comand

```
$ composer update

```

In your `config/app.php` add `'Zizaco\Lessy\LessyServiceProvider'` to the end of the `$providers` array

```
'providers' => array(

    'Illuminate\Foundation\Providers\ArtisanServiceProvider',
    'Illuminate\Auth\AuthServiceProvider',
    ...
    'Zizaco\Lessy\LessyServiceProvider',

),

```

**You are ready to go!** Your application will now compile LESS files when needed. Remember that this does not occur in production environment.

### Configuration (Optional)

[](#configuration-optional)

By default, Lessy will consider the directory `app/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 zizaco/lessy

```

and define the `origin` and `destination` keys in `config/packages/zizaco/lessy/config.php`. Example:

```
// config/packages/zizaco/lessy/config.php

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

```

The automatic **compilation does not occur when the application is in 'production' environment**. So make sure to [change the application environment](http://four.laravel.com/docs/configuration#environment-configuration "Environment Configuration") to `'local'` or something that is not `'production'` if you need Lessy to automagically compile your LESS files.

### Console usage

[](#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 lessy:compile

```

License
-------

[](#license)

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

Aditional information
---------------------

[](#aditional-information)

Any questions, feel free to contact me.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~23 days

Total

5

Last Release

4779d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a0300b524cec176bcf86cb356eab35fa035a74f5f0a651c362abf3d0e0b9e891?d=identicon)[Zizaco](/maintainers/Zizaco)

---

Top Contributors

[![Zizaco](https://avatars.githubusercontent.com/u/777635?v=4)](https://github.com/Zizaco "Zizaco (18 commits)")[![boydcl](https://avatars.githubusercontent.com/u/6942044?v=4)](https://github.com/boydcl "boydcl (1 commits)")

---

Tags

laravelscsslessilluminate

### Embed Badge

![Health badge](/badges/zizaco-lessy/health.svg)

```
[![Health](https://phpackages.com/badges/zizaco-lessy/health.svg)](https://phpackages.com/packages/zizaco-lessy)
```

###  Alternatives

[lampager/lampager-laravel

Rapid pagination for Laravel

7641.4k](/packages/lampager-lampager-laravel)[efficiently/larasset

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

684.8k](/packages/efficiently-larasset)[mindtwo/native-enum

Package for using native php enums.

2626.0k1](/packages/mindtwo-native-enum)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)[jtgrimes/less4laravel

Bringing lessphp into Laravel

183.4k](/packages/jtgrimes-less4laravel)[trentrichardson/cakephp-shrink

Compiles, combines, and minifies javascript, coffee, less, scss, and css

1619.3k](/packages/trentrichardson-cakephp-shrink)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
