PHPackages                             electblake/cakeless - 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. [Framework](/categories/framework)
4. /
5. electblake/cakeless

ActiveCakephp-plugin[Framework](/categories/framework)

electblake/cakeless
===================

A very simple plugin for using phpless (a LESS php implementation) in CakePHP

1.0.1(13y ago)0421PHP

Since Feb 5Pushed 13y ago1 watchersCompare

[ Source](https://github.com/electblake/cakeless)[ Packagist](https://packagist.org/packages/electblake/cakeless)[ RSS](/packages/electblake-cakeless/feed)WikiDiscussions master Synced 3w ago

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

Cakeless - A very simple lessphp plugin for CakePHP
===================================================

[](#cakeless---a-very-simple-lessphp-plugin-for-cakephp)

This plugin is a very simple implementation of [lessphp](http://leafo.net/lessphp/) for CakePHP 2.x.

To use Cakeless download and unzip the plugin or clone git repository in `plugins/cakeless`.

Using the plugin
----------------

[](#using-the-plugin)

### In your Controllers or App Controller

[](#in-your-controllers-or-app-controller)

Load plugin in bootstrap.php (for CakePHP 2.x):

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

```

Include the component using:

```
public $components = array('Cakeless.Cakeless');

```

Indicate the .less file you want to compile and the desired location and filename for the compiled file. For example:

```
$lessExample = APP . 'plugins' . DS . 'cakeless' . DS . 'webroot' . DS . 'less' . DS . 'example.less';
$cssExample = APP . 'plugins' . DS . 'cakeless' . DS . 'webroot' . DS . 'css' . DS . 'example.css';

$this->Cakeless->compile( $lessExample, $cssExample );

```

This will compile the provided example file (`/app/plugins/cakeless/webroot/less/example.less`) to `/app/plugins/cakeless/webroot/css/example.css`. This could be used for testing purposes but you may want to see a more real life example. Here you have it:

```
$lessMainStyles = WWW_ROOT . 'less' . DS . 'main_styles.less';
$cssMainStyles = WWW_ROOT . 'css' . DS . 'main_styles.css';

$this->Cakeless->compile( $lessMainStyles, $cssMainStyles );

```

**IMPORTANT NOTE:** Compilation will only occur under debug modes 1 and above of your CakePHP application.

### In your Views

[](#in-your-views)

Simply link to the CSS file as usual:

```
echo $this->Html->css( 'main_styles', null, array( 'media' => 'screen, projection' ) );

```

Requirements
------------

[](#requirements)

- PHP version: PHP 5.2+
- CakePHP version: Cakephp 2.x Stable
- lessphp version: 0.3.5 (no need to download, included in `/vendors` folder)

Support
-------

[](#support)

For support and feature request, please use the repository [Issues section at GitHub](https://github.com/sveggiani/Cakeless/issues).

About LESS and lessphp
----------------------

[](#about-less-and-lessphp)

If you want to know more about **LESS syntax** please check [the official LESS documentation](http://lesscss.org/). For **lessphp** extended documentation and downloads please visit [the official lessphp website](http://leafo.net/lessphp/).

License
-------

[](#license)

Copyright (c) 2011 Sebastián Veggiani,

Licensed under [The MIT License (MIT)](http://www.opensource.org/licenses/mit-license.php)
Redistributions of files must retain the above copyright notice.

Copyright
---------

[](#copyright)

Copyright 2011
[Sebastián Veggiani](http://actionauta.com)

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

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

4886d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/22871?v=4)[Blake E](/maintainers/electblake)[@electblake](https://github.com/electblake)

---

Top Contributors

[![sveggiani](https://avatars.githubusercontent.com/u/560791?v=4)](https://github.com/sveggiani "sveggiani (10 commits)")[![electblake](https://avatars.githubusercontent.com/u/22871?v=4)](https://github.com/electblake "electblake (1 commits)")

### Embed Badge

![Health badge](/badges/electblake-cakeless/health.svg)

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

###  Alternatives

[silverstripe/framework

The SilverStripe framework

7223.7M2.7k](/packages/silverstripe-framework)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.1k16.8k](/packages/prestashop-prestashop)[october/rain

October Rain Library

1581.7M73](/packages/october-rain)[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.3k10](/packages/helsingborg-stad-municipio)[drupal/recommended-project

Project template for Drupal projects with a relocated document root

1492.8M1](/packages/drupal-recommended-project)[elgg/elgg

Elgg is an award-winning social networking engine, delivering the building blocks that enable businesses, schools, universities and associations to create their own fully-featured social networks and applications.

1.7k16.2k44](/packages/elgg-elgg)

PHPackages © 2026

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