PHPackages                             songphi/cakephp-less - 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. songphi/cakephp-less

ActiveCakephp-plugin[Utility &amp; Helpers](/categories/utility)

songphi/cakephp-less
====================

Cakephp Less CSS compiler (forked from cakephp/less because of leafo/lessphp doesn't compatible with Twitter Bootstrap 3. Now oyejorge/less.php is being used instead)

1.0(12y ago)04562MITPHPPHP &gt;=5.3.0

Since May 14Pushed 12y ago1 watchersCompare

[ Source](https://github.com/SongPhi/cake-lessphp)[ Packagist](https://packagist.org/packages/songphi/cakephp-less)[ RSS](/packages/songphi-cakephp-less/feed)WikiDiscussions master Synced 6d ago

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

LESS Helper
-----------

[](#less-helper)

This little Helper converts your .less files into .css without relying on Node.js or client-side parsing. Everything is compiled on the server, cached, and served as regular css through PHP.

Forked from flug/CakeLess because of leafo/lessphp doesn't compatible with Twitter Bootstrap 3. Now oyejorge/less.php is using instead

Installation
------------

[](#installation)

#### Git Submodule

[](#git-submodule)

In your cakephp's root directory type

```
git submodule add https://github.com/SongPhi/cake-lessphp.git app/Plugin/CakeLess
git submodule init
git submodule update

```

#### Git clone

[](#git-clone)

In your cakephp's root directory type

```
git clone https://github.com/SongPhi/cake-lessphp.git app/Plugin/CakeLess

```

#### Composer

[](#composer)

In your root cakephp, edit your composer.json to fit:

```
"require": {
	"composer/installers": "*",
	"songphi/cakephp-less": "dev-master",
	"oyejorge/less.php": "~1.7"
},
"extra": {
	"installer-paths": {
		"app/Plugin/{$name}/": ["songphi/cakephp-less"]
	}
}
```

#### Plugin Loading

[](#plugin-loading)

In your app/Config/bootstrap.php add this line:

```
CakePlugin::load('CakeLess');
```

It doesn't need if you already have this line:

```
CakePlugin::loadAll();
```

### Create cache and less folders

[](#create-cache-and-less-folders)

- Create a folder `app/webroot/less`
- Create a folder `app/tmp/cache/less`
- Apply `chmod 777` to your `css` folder. (The Less Helper will place all compiled css files in your css-directory)

Usage
-----

[](#usage)

Where you want to use LESS files, add the helper. Usually this will be your `AppController`.

```
public $helpers = array('CakeLess.Less');
```

Next, simply add the less files to your views:

```
echo $this->Less->css('yourfile');
```

or if the less file is located in the webroot of a plugin

```
echo $this->Less->css('yourfile',array('plugin' => 'PluginFolderName'));
```

or

```
echo $this->Less->css(array(
		'bootstrap/bootstrap',
		'prettify',
	)
);
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 53.4% 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

Unknown

Total

1

Last Release

4386d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0816fa6f00a09dd96518a07f8e1fd20390fea7e7625008aed7a08bc4348a37f2?d=identicon)[ycicom](/maintainers/ycicom)

---

Top Contributors

[![Hyra](https://avatars.githubusercontent.com/u/380836?v=4)](https://github.com/Hyra "Hyra (39 commits)")[![flug](https://avatars.githubusercontent.com/u/1810304?v=4)](https://github.com/flug "flug (14 commits)")[![thaolt](https://avatars.githubusercontent.com/u/1061657?v=4)](https://github.com/thaolt "thaolt (13 commits)")[![ybenassuli](https://avatars.githubusercontent.com/u/4007074?v=4)](https://github.com/ybenassuli "ybenassuli (2 commits)")[![bfncs](https://avatars.githubusercontent.com/u/1049882?v=4)](https://github.com/bfncs "bfncs (2 commits)")[![Maff-](https://avatars.githubusercontent.com/u/371966?v=4)](https://github.com/Maff- "Maff- (1 commits)")[![electblake](https://avatars.githubusercontent.com/u/22871?v=4)](https://github.com/electblake "electblake (1 commits)")[![bfanger](https://avatars.githubusercontent.com/u/207248?v=4)](https://github.com/bfanger "bfanger (1 commits)")

---

Tags

cakephplesssongphi

### Embed Badge

![Health badge](/badges/songphi-cakephp-less/health.svg)

```
[![Health](https://phpackages.com/badges/songphi-cakephp-less/health.svg)](https://phpackages.com/packages/songphi-cakephp-less)
```

###  Alternatives

[markstory/asset_compress

An asset compression plugin for CakePHP. Provides file concatenation and a flexible filter system for preprocessing and minification.

3761.0M11](/packages/markstory-asset-compress)[markstory/mini-asset

An asset compression library. Provides file concatenation and a flexible filter system for preprocessing and minification.

66741.1k3](/packages/markstory-mini-asset)[ishanvyas22/asset-mix

Asset Mix plugin for CakePHP

3375.4k2](/packages/ishanvyas22-asset-mix)[trentrichardson/cakephp-shrink

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

1619.3k](/packages/trentrichardson-cakephp-shrink)[dereuromark/cakephp-url-cache

CakePHP plugin to speed up URL reverse lookup

24117.2k](/packages/dereuromark-cakephp-url-cache)[loadsys/cakephp_sitemap

A CakePHP Plugin for adding automatic XML and HTML Sitemaps to an app

2819.6k](/packages/loadsys-cakephp-sitemap)

PHPackages © 2026

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