PHPackages                             laravelless/lessphp - 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. laravelless/lessphp

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

laravelless/lessphp
===================

Lessphp leafo for Laravel 5

1.0.3(8y ago)390MIT

Since Jun 23Compare

[ Source](https://github.com/h-rafiee/Laravel-lessphp-leafo)[ Packagist](https://packagist.org/packages/laravelless/lessphp)[ RSS](/packages/laravelless-lessphp/feed)WikiDiscussions Synced yesterday

READMEChangelog (5)Dependencies (1)Versions (8)Used By (0)

LESS For Laravel 5.x Without Node.js
====================================

[](#less-for-laravel-5x-without-nodejs)

LESS with your Laravel. Using [Leafo.php](http://leafo.net)

Features
========

[](#features)

- Can modify LESS variables on-the-fly
- Can parse custom CSS/LESS and append it to the resulting file
- Caching support

Installation
============

[](#installation)

You need [composer](https://getcomposer.org/) to install.

```
$ composer require laravelless/lessphp
```

Add Provider,Facade to **config/app.php**

```
    'providers' => [
        ...,
        Laravelless\Lessphp\LessphpServiceProvider::class,
    ];
    /**********/
    'aliases' => [
        ...,
        'Lessphp'   => Laravelless\Lessphp\LessphpFacade::class,
    ];
```

After that you need publish vendor.

```
$ php artisan vendor:publish
```

Now you must have **config/Lessphp.php** so you can edit that where is your LESS path and your file must be excute to CSS

```
    return array(
        'css_path'          => base_path('css'),
        'less_path'         => base_path('less'),
        'cache_extension'   => '.cache',
        'formatter'         => "compressed",
    );
```

Functions
=========

[](#functions)

For execute to css is simple :

```
    $filename = 'style.less';
    $less = \Lessphp::compile($filename);
```

**NOTE :** Lessphp return url("css/$filename.css") Will be fixed soon to dynamical path.

---

For execute cached less =&gt; css

```
    $filename = 'style.less';
    $less = \Lessphp::cacheCompile($filename);
```

**NOTE :** You can set output filename for cacheCompile as second parameter.

```
    $less = \Lessphp::cacheCompile($filename,'style-min');
```

---

You can set variables before compile like this :

```
    $data = [
                'myBorderRadius'=>'5px',
            ];
    $less = \Lessphp::setVariables($data)->compile($filename);
```

License
=======

[](#license)

HRAFIEE

***IT's Free , SO Enjoy your free World***

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~120 days

Recently: every ~0 days

Total

7

Last Release

2937d ago

Major Versions

0.9 → 1.0b2018-06-16

### Community

Maintainers

![](https://www.gravatar.com/avatar/8775185a214c0c9f83168bd60b45fdca71eed129c802cd1995b707f0c5683edb?d=identicon)[h-rafiee](/maintainers/h-rafiee)

---

Top Contributors

[![adevneverdies](https://avatars.githubusercontent.com/u/1610989?v=4)](https://github.com/adevneverdies "adevneverdies (10 commits)")

---

Tags

laravelless

### Embed Badge

![Health badge](/badges/laravelless-lessphp/health.svg)

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

###  Alternatives

[zizaco/lessy

Lessy is a simple and lean LESS compiler for Laravel

2116.7k](/packages/zizaco-lessy)[efficiently/larasset

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

684.8k](/packages/efficiently-larasset)[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.4k](/packages/trentrichardson-cakephp-shrink)[mmanos/laravel-casset

An asset management package for Laravel 4.

102.6k](/packages/mmanos-laravel-casset)

PHPackages © 2026

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