PHPackages                             covaleski/sass-php - 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. covaleski/sass-php

ActiveLibrary

covaleski/sass-php
==================

Install and run Sass using Composer.

v0.1.3(1mo ago)05MITPHPCI passing

Since Jul 13Pushed 1mo agoCompare

[ Source](https://github.com/covaleski/sass-php)[ Packagist](https://packagist.org/packages/covaleski/sass-php)[ RSS](/packages/covaleski-sass-php/feed)WikiDiscussions main Synced 1w ago

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

Sass for PHP
============

[](#sass-for-php)

Run Sass binaries from Composer and compile SCSS files programatically from PHP.

Installation
------------

[](#installation)

Install this package using the Composer package manager:

```
composer require covaleski/sass-php
```

Usage
-----

[](#usage)

Use the `vendor/bin/sass-php` to install, update or remove Sass:

```
vendor/bin/sass-php install
vendor/bin/sass-php install latest
vendor/bin/sass-php install 1.101.0
vendor/bin/sass-php use 1.101.0
vendor/bin/sass-php remove 1.101.0
vendor/bin/sass-php remove all
vendor/bin/sass-php autoremove
```

Once a Sass binary is downloaded, use `vendor/bin/sass` to compile SCSS files:

```
vendor/bin/sass input.scss output.css
```

To programatically interact with Sass from PHP, use the `Sass` facade:

```
use Covaleski\SassPhp\Sass\Sass;

Sass::build()
    ->setStyle(Sass::COMPRESSED)
    ->generateSourceMap(false)
    ->setInputFile('input.scss')
    ->setOutputFile('output.css')
    ->getProcess()
    ->run();
```

The `build()` method provides a `SassProcessBuilder` instance, which creates a Symfony `Process` instance with all applicable Sass options once you call the `getProcess()` method.

> The Sass binaries you installed using the `sass-php` command are automatically detected by the process builder.

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance91

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 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 ~2 days

Total

4

Last Release

42d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/99929442?v=4)[covaleski](/maintainers/covaleski)[@covaleski](https://github.com/covaleski)

---

Top Contributors

[![covaleski](https://avatars.githubusercontent.com/u/99929442?v=4)](https://github.com/covaleski "covaleski (24 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/covaleski-sass-php/health.svg)

```
[![Health](https://phpackages.com/badges/covaleski-sass-php/health.svg)](https://phpackages.com/packages/covaleski-sass-php)
```

###  Alternatives

[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

605.9M712](/packages/shopware-core)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.4k1.4M241](/packages/sulu-sulu)[contao/core-bundle

Contao Open Source CMS

1231.7M3.2k](/packages/contao-core-bundle)[jolicode/castor

A lightweight and modern task runner. Automate everything. In PHP.

55344.7k5](/packages/jolicode-castor)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

21668.5M2.0k](/packages/drupal-core)

PHPackages © 2026

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