PHPackages                             eugene-matvejev/css-compiler - 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. eugene-matvejev/css-compiler

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

eugene-matvejev/css-compiler
============================

compiles SASS and LESS assets on composer's callback

1.0.1(9y ago)31.5k[1 PRs](https://github.com/learn-symfony/css-compiler/pulls)MITPHPPHP &gt;= 5.5.9 || 7.0.0 - 7.0.4 || &gt;= 7.0.6

Since Jun 18Pushed 7y ago2 watchersCompare

[ Source](https://github.com/learn-symfony/css-compiler)[ Packagist](https://packagist.org/packages/eugene-matvejev/css-compiler)[ RSS](/packages/eugene-matvejev-css-compiler/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (10)Dependencies (4)Versions (13)Used By (0)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/a7e513a1011821fe1be3fcdbd7a587b83028e86b11ded7185d46ad1da216a4df/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6c6561726e2d73796d666f6e792f6373732d636f6d70696c65722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/learn-symfony/css-compiler/?branch=master)[![codecov](https://camo.githubusercontent.com/cc93a6ec191222bded058f950e38687d0b98c1d37e9193c4c4e5a31bdbd4ec4f/68747470733a2f2f636f6465636f762e696f2f67682f6c6561726e2d73796d666f6e792f6373732d636f6d70696c65722f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/learn-symfony/css-compiler)[![SensioLabsInsight](https://camo.githubusercontent.com/68433e2319ff38981544aa73d5bbb00d83f67c9af5a643cf5cc19a430812ff53/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f62373230373864632d393461372d343932662d396465622d3338323963343164323531392f6d696e692e706e67)](https://insight.sensiolabs.com/projects/b72078dc-94a7-492f-9deb-3829c41d2519)

[![HHVM Status](https://camo.githubusercontent.com/1a8d9ea2ec256024448bca6b0874dfbceb9146fdd853b3ed6f837242ad838e96/687474703a2f2f6868766d2e683463632e64652f62616467652f657567656e652d6d617476656a65762f6373732d636f6d70696c65722e737667)](http://hhvm.h4cc.de/package/eugene-matvejev/css-compiler)

[![Latest Stable Version](https://camo.githubusercontent.com/1280c49799f1874bfd64070c08cb05d45021cbcc42f39372b0160eb5bf053532/68747470733a2f2f706f7365722e707567782e6f72672f657567656e652d6d617476656a65762f6373732d636f6d70696c65722f76657273696f6e)](https://packagist.org/packages/eugene-matvejev/css-compiler)[![Total Downloads](https://camo.githubusercontent.com/722ab9f4b36eedc0ac942aad9370b44b5396d736ae7aca451ff09ecf710c5175/68747470733a2f2f706f7365722e707567782e6f72672f657567656e652d6d617476656a65762f6373732d636f6d70696c65722f646f776e6c6f616473)](https://packagist.org/packages/eugene-matvejev/css-compiler)[![License](https://camo.githubusercontent.com/4c63ecbaf1626bec80ad5e7c8e22554055fff0cad96f1b7a883604ce8b93ae3d/68747470733a2f2f706f7365722e707567782e6f72672f657567656e652d6d617476656a65762f6373732d636f6d70696c65722f6c6963656e7365)](https://packagist.org/packages/eugene-matvejev/css-compiler)[![composer.lock](https://camo.githubusercontent.com/185bd0275ccbb61808c7f2569f82a3cdc9b9252b4ceb8421b32e6f46136fcc9d/68747470733a2f2f706f7365722e707567782e6f72672f657567656e652d6d617476656a65762f6373732d636f6d70696c65722f636f6d706f7365726c6f636b)](https://packagist.org/packages/eugene-matvejev/css-compiler)

PHP CSS compiler with composer handler
======================================

[](#php-css-compiler-with-composer-handler)

*can be triggered from composer's script's section: compiles SCSS with compass|LESS*

how to use
----------

[](#how-to-use)

`composer require eugene-matvejev/css-compiler`

### add callback into into composer's **scripts**

[](#add-callback-into-into-composers-scripts)

`"EM\\CssCompiler\\ScriptHandler::generateCSS"`

*example*

```
"scripts": {
    "post-update-cmd": "@custom-events",
    "post-install-cmd": "@custom-events",
    "custom-events": [
        "EM\\CssCompiler\\ScriptHandler::generateCSS"
    ]
}

```

### add *css-compiler* information inside of the *extra* composer configuration

[](#add-css-compiler-information-inside-of-the-extra-composer-configuration)

- *format*: compression format
- *input*: array of relative paths to the composer.json, all files will be picked up recursivly inside of the directory
- *output*: relative file path to the composer.json, where to save output (hard-copy)

*example*

```
"extra": {
    "css-compiler": [
        {
            "format": "compact",
            "input": [
                "tests/shared-fixtures/compass/app.scss"
            ],
            "output": "var/cache/assets/compass.css"
        },
        {
            "format": "compact",
            "input": [
                "tests/shared-fixtures/sass"
            ],
            "output": "var/cache/assets/sass.css"
        }
    ]
}

```

###  Health Score

31

—

LowBetter than 65% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 99% 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 ~23 days

Recently: every ~63 days

Total

12

Last Release

3448d ago

Major Versions

0.2.1 → 1.0.02016-07-31

PHP version history (3 changes)0.1.0PHP &gt;= 5.5.9

0.1.4PHP &gt;= 5.6.0 || 7.0.0 - 7.0.4 || &gt;= 7.0.6

0.1.7PHP &gt;= 5.5.9 || 7.0.0 - 7.0.4 || &gt;= 7.0.6

### Community

Maintainers

![](https://www.gravatar.com/avatar/2b8fcc0ad7b8e00768ffb64fbe2e626325612320e0c4d8e537144451f7c5729f?d=identicon)[eugene-matvejev](/maintainers/eugene-matvejev)

---

Top Contributors

[![eugene-matvejev](https://avatars.githubusercontent.com/u/276715?v=4)](https://github.com/eugene-matvejev "eugene-matvejev (100 commits)")[![cheprasov](https://avatars.githubusercontent.com/u/4299922?v=4)](https://github.com/cheprasov "cheprasov (1 commits)")

---

Tags

composer-scriptscss-compilerlessphpscss

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/eugene-matvejev-css-compiler/health.svg)

```
[![Health](https://phpackages.com/badges/eugene-matvejev-css-compiler/health.svg)](https://phpackages.com/packages/eugene-matvejev-css-compiler)
```

###  Alternatives

[zizaco/lessy

Lessy is a simple and lean LESS compiler for Laravel

2316.7k](/packages/zizaco-lessy)[trentrichardson/cakephp-shrink

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

1619.4k](/packages/trentrichardson-cakephp-shrink)[jtgrimes/less4laravel

Bringing lessphp into Laravel

193.4k](/packages/jtgrimes-less4laravel)

PHPackages © 2026

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