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. electblake/cakeless

ActiveCakephp-plugin

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 1mo 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 60% 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

4841d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2e0124bf77b27267de2669fe77779c6b2a941a20f1e33374ef5d692e7a85b128?d=identicon)[electblake](/maintainers/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

[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.7k15.7k3](/packages/elgg-elgg)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

44643.1k1](/packages/pressbooks-pressbooks)[johnbillion/user-switching

Instant switching between user accounts in WordPress and WooCommerce.

19768.3k2](/packages/johnbillion-user-switching)[rainlab/blog-plugin

Blog plugin for October CMS

17257.7k](/packages/rainlab-blog-plugin)[rainlab/user-plugin

User plugin for October CMS

11954.3k13](/packages/rainlab-user-plugin)[starcitizentools/citizen-skin

A beautiful, usable, responsive MediaWiki skin with in-depth extension support. Originally developed for the Star Citizen Wiki.

3164.5k](/packages/starcitizentools-citizen-skin)

PHPackages © 2026

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