PHPackages                             skillberto/less-css-bundle - 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. [Templating &amp; Views](/categories/templating)
4. /
5. skillberto/less-css-bundle

ActiveSymfony-bundle[Templating &amp; Views](/categories/templating)

skillberto/less-css-bundle
==========================

This bundle provides an integration of Less CSS JavaScript

025PHP

Since Jan 13Pushed 12y ago1 watchersCompare

[ Source](https://github.com/skillberto/SkillbertoLessCssBundle)[ Packagist](https://packagist.org/packages/skillberto/less-css-bundle)[ RSS](/packages/skillberto-less-css-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

LessJsBundle
============

[](#lessjsbundle)

===================

This Bundle initializes Less.js into Symfony2 Framework

===================

### Setup:

[](#setup)

`app/AppKernel.php`:

***Warning!***

Namespace changed from `Less\CssBundle\LessCssBundle`to `Skillberto\LessCssBundle\SkillbertoLessCssBundle`.

This declaration is deprecated: `new Less\CssBundle\LessCssBundle()`Correct:

```
...
new Skillberto\LessCssBundle\SkillbertoLessCssBundle(),
...

```

### Run in console:

[](#run-in-console)

```
assets:install
assetic:dump

```

### Use the less css JavaScript:

[](#use-the-less-css-javascript)

```

```

OR (from bundle)

```
{% javascripts
    '@LessCssBundle/Resources/public/js/*'
 %}

{% endjavascripts %}

```

With this mode, you can include your .less, eg: style.less 'css':

```

```

But this mode is **not secure**. Better way is to copy into `web/css/` and include from this folder, or use this other way.

Other way: Assetic filter method
================================

[](#other-way-assetic-filter-method)

For this, you have to use Node, or some kind of PHP or other script.

### With Node:

[](#with-node)

```
#...
assetic:
    filters:
        cssrewrite: ~
        less:
            node: /usr/local/bin/node
            node_paths: [/usr/local/lib/node_modules]
            apply_to: "\.less$"
...

```

### With PHP:

[](#with-php)

For example,a good way is the `leafo/lessphp`:

Put into composer.json:

```
...
"require": {
    ...
    "leafo/lessphp": "0.3.*@dev"
}
...

```

Update composer, and put into `app/config/config.yml`:

```
#...
assetic:
    #...
    filters:
        lessphp:
            file: %kernel.root_dir%/../vendor/leafo/lessphp/lessc.inc.php
            apply_to: "\.less$"

```

Now, you can use from the hood with assetic filter:

```
{% stylesheets 'path/to/files.less' %}

{% endstylesheets %}

```

### Run in console:

[](#run-in-console-1)

```
assets:install
assetic:dump

```

The public data will be in `web` directory, and .less compiled to .css

You can find this documentation, and some kind of other in this url:

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2433ba2d39deb8fb11ffd0c44b609b9f0137bf9f000665639dc000d5897b931a?d=identicon)[skillberto](/maintainers/skillberto)

---

Top Contributors

[![skillberto](https://avatars.githubusercontent.com/u/1987338?v=4)](https://github.com/skillberto "skillberto (21 commits)")

### Embed Badge

![Health badge](/badges/skillberto-less-css-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/skillberto-less-css-bundle/health.svg)](https://phpackages.com/packages/skillberto-less-css-bundle)
```

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[whitecube/nova-flexible-content

Flexible Content &amp; Repeater Fields for Laravel Nova.

8053.0M25](/packages/whitecube-nova-flexible-content)[mopa/bootstrap-bundle

Easy integration of twitters bootstrap into symfony2

7042.9M33](/packages/mopa-bootstrap-bundle)[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3871.2M](/packages/limenius-react-bundle)[nicmart/string-template

StringTemplate is a very simple string template engine for php. I've written it to have a thing like sprintf, but with named and nested substutions.

2101.7M30](/packages/nicmart-string-template)[symfony/ux-icons

Renders local and remote SVG icons in your Twig templates.

555.8M69](/packages/symfony-ux-icons)

PHPackages © 2026

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