PHPackages                             scylabs/css2less - 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. scylabs/css2less

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

scylabs/css2less
================

css to less converter

1.0.0(6y ago)13.8k—0%MITPHPPHP &gt;=5.4.4CI failing

Since Oct 29Pushed 6y ago1 watchersCompare

[ Source](https://github.com/ScyLabs/css2less)[ Packagist](https://packagist.org/packages/scylabs/css2less)[ RSS](/packages/scylabs-css2less/feed)WikiDiscussions master Synced today

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

[![Build Status](https://camo.githubusercontent.com/091b22432dad6d3afc9bed2d5832732d79af8cd50c83e9ad1dd7a3da1f972c5b/68747470733a2f2f6170692e7472617669732d63692e6f72672f6f727469632f637373326c6573732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ortic/css2less)[![Code Rating](https://camo.githubusercontent.com/f306864ae3d99d35c4110c5489fed17c661ee92f55a5b0f20746ae3f8cf7652d/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6f727469632f637373326c6573732e7376673f7374796c653d666c6174)](https://scrutinizer-ci.com/g/ortic/css2less/)[![Coverage Status](https://camo.githubusercontent.com/886b0b04115fda83a06e18e444d80135b292f10f34187d05f7865864771a6cb6/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6f727469632f637373326c6573732e7376673f7374796c653d666c6174)](https://scrutinizer-ci.com/g/ortic/css2less/)

css2less
========

[](#css2less)

This library has created by Remo Laubacher : This repository is just a re-upload of the package to put it on composer

this library aims to convert CSS files into LESS files.

Currently used by

example
=======

[](#example)

The code below takes a few CSS instructions and prints them in a more LESS like form:

```
$cssContent = 'body p { font-family: arial; }';
$css2lessParser = new \Ortic\Css2Less\Css2Less($cssContent);
echo $css2lessParser->getLess();
```

output:

```
body {
        p {
                font-family: arial;
        }
}

```

###  Health Score

29

—

LowBetter than 63% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

2336d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/616f911d4af921858d52ce570da1619febad217ca0f7ded1d579aeeabde06dfb?d=identicon)[santanas2b](/maintainers/santanas2b)

---

Top Contributors

[![ScyLabs](https://avatars.githubusercontent.com/u/42002581?v=4)](https://github.com/ScyLabs "ScyLabs (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/scylabs-css2less/health.svg)

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

###  Alternatives

[devfactory/minify

A package for minifying styles and javascript for laravel 5

82358.7k13](/packages/devfactory-minify)[nodejs-php-fallback/uglify

PHP wrapper to execute uglify-js/clean-css node package or fallback to PHP alternatives

17142.5k1](/packages/nodejs-php-fallback-uglify)[joseki/webloader-filters

This is an extension of janmarek/webloader. This extension contains filters to minify js and css.

12224.8k8](/packages/joseki-webloader-filters)[trentrichardson/cakephp-shrink

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

1619.3k](/packages/trentrichardson-cakephp-shrink)[corneltek/assetkit

High performance asset manager.

531.4k2](/packages/corneltek-assetkit)

PHPackages © 2026

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