PHPackages                             arlisaha/scssphp - 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. arlisaha/scssphp

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

arlisaha/scssphp
================

Fork from Leafo SCSS PHP compiler (see homepage).

v0.6.8(8y ago)022MITPHPPHP &gt;=5.4.0

Since Jul 30Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Arlisaha/scssphp)[ Packagist](https://packagist.org/packages/arlisaha/scssphp)[ Docs](http://leafo.github.io/scssphp/)[ RSS](/packages/arlisaha-scssphp/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (2)Versions (45)Used By (0)

scssphp
=======

[](#scssphp)

###

[](#httpleafogithubioscssphp)

[![Build](https://camo.githubusercontent.com/9943c4613f76d092334227a3889de0e40cfde3f555eb5a8756e4cf6b413c96ed/68747470733a2f2f7472617669732d63692e6f72672f6c6561666f2f736373737068702e7376673f6272616e63683d6d6173746572)](http://travis-ci.org/leafo/scssphp)[![License](https://camo.githubusercontent.com/42d9e4e32a6c2ac9352652e6681386cde432de02dc6a15b08f480e58729c01b9/68747470733a2f2f706f7365722e707567782e6f72672f6c6561666f2f736373737068702f6c6963656e73652e737667)](https://packagist.org/packages/leafo/scssphp)

`scssphp` is a compiler for SCSS written in PHP.

Checkout the homepage, , for directions on how to use.

Running Tests
-------------

[](#running-tests)

`scssphp` uses [PHPUnit](https://github.com/sebastianbergmann/phpunit) for testing.

Run the following command from the root directory to run every test:

```
vendor/bin/phpunit tests

```

There are several tests in the `tests/` directory:

- `ApiTest.php` contains various unit tests that test the PHP interface.
- `ExceptionTest.php` contains unit tests that test for exceptions thrown by the parser and compiler.
- `FailingTest.php` contains tests reported in Github issues that demonstrate compatibility bugs.
- `InputTest.php` compiles every `.scss` file in the `tests/inputs` directory then compares to the respective `.css` file in the `tests/outputs` directory.
- `ScssTest.php` extracts (ruby) `scss` tests from the `tests/scss_test.rb` file.
- `ServerTest.php` contains functional tests for the `Server` class.

When changing any of the tests in `tests/inputs`, the tests will most likely fail because the output has changed. Once you verify that the output is correct you can run the following command to rebuild all the tests:

```
BUILD=1 vendor/bin/phpunit tests

```

This will compile all the tests, and save results into `tests/outputs`.

To enable the `scss` compatibility tests:

```
TEST_SCSS_COMPAT=1 vendor/bin/phpunit tests

```

Coding Standard
---------------

[](#coding-standard)

`scssphp` source conforms to [PSR2](http://www.php-fig.org/psr/psr-2/).

Run the following command from the root directory to check the code for "sniffs".

```
vendor/bin/phpcs --standard=PSR2 bin src tests

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 64% 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 ~45 days

Recently: every ~121 days

Total

43

Last Release

3136d ago

PHP version history (3 changes)v0.0.5PHP &gt;=5.2.0

v0.1.0PHP &gt;=5.3.0

v0.5.0PHP &gt;=5.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/a2ff91bb4b8890a7cf144478f8589cba544d0e5e86255e5cc026aedf97ff47a9?d=identicon)[Arlisaha](/maintainers/Arlisaha)

---

Top Contributors

[![robocoder](https://avatars.githubusercontent.com/u/922051?v=4)](https://github.com/robocoder "robocoder (518 commits)")[![leafo](https://avatars.githubusercontent.com/u/15198?v=4)](https://github.com/leafo "leafo (219 commits)")[![clue](https://avatars.githubusercontent.com/u/776829?v=4)](https://github.com/clue "clue (15 commits)")[![hason](https://avatars.githubusercontent.com/u/288535?v=4)](https://github.com/hason "hason (14 commits)")[![vladimmi](https://avatars.githubusercontent.com/u/891830?v=4)](https://github.com/vladimmi "vladimmi (4 commits)")[![Arlisaha](https://avatars.githubusercontent.com/u/3227199?v=4)](https://github.com/Arlisaha "Arlisaha (4 commits)")[![okj579](https://avatars.githubusercontent.com/u/40447?v=4)](https://github.com/okj579 "okj579 (3 commits)")[![caiosm1005](https://avatars.githubusercontent.com/u/4460538?v=4)](https://github.com/caiosm1005 "caiosm1005 (3 commits)")[![aaukt](https://avatars.githubusercontent.com/u/5297402?v=4)](https://github.com/aaukt "aaukt (2 commits)")[![edwinveldhuizen](https://avatars.githubusercontent.com/u/1787915?v=4)](https://github.com/edwinveldhuizen "edwinveldhuizen (2 commits)")[![guilhermeblanco](https://avatars.githubusercontent.com/u/208883?v=4)](https://github.com/guilhermeblanco "guilhermeblanco (2 commits)")[![IceReaper](https://avatars.githubusercontent.com/u/1322277?v=4)](https://github.com/IceReaper "IceReaper (2 commits)")[![jamesshannon](https://avatars.githubusercontent.com/u/761381?v=4)](https://github.com/jamesshannon "jamesshannon (2 commits)")[![lucvn](https://avatars.githubusercontent.com/u/206688?v=4)](https://github.com/lucvn "lucvn (2 commits)")[![micranet](https://avatars.githubusercontent.com/u/5610284?v=4)](https://github.com/micranet "micranet (2 commits)")[![sergeylukin](https://avatars.githubusercontent.com/u/720339?v=4)](https://github.com/sergeylukin "sergeylukin (2 commits)")[![siwinski](https://avatars.githubusercontent.com/u/1034024?v=4)](https://github.com/siwinski "siwinski (1 commits)")[![Marat-Tanalin](https://avatars.githubusercontent.com/u/1833563?v=4)](https://github.com/Marat-Tanalin "Marat-Tanalin (1 commits)")[![marinaglancy](https://avatars.githubusercontent.com/u/836986?v=4)](https://github.com/marinaglancy "marinaglancy (1 commits)")[![designerno1](https://avatars.githubusercontent.com/u/8417506?v=4)](https://github.com/designerno1 "designerno1 (1 commits)")

---

Tags

csssassscsslessstylesheet

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/arlisaha-scssphp/health.svg)

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

###  Alternatives

[scssphp/scssphp

scssphp is a compiler for SCSS written in PHP.

62827.7M220](/packages/scssphp-scssphp)[wikimedia/less.php

PHP port of the LESS processor

12327.4M77](/packages/wikimedia-lessphp)[efficiently/larasset

Larasset is a library for Laravel 5 which manage assets in an easy way.

684.8k](/packages/efficiently-larasset)[panique/laravel-sass

Compiles your Sass .scss files to .css every time you run your app (in development)

73171.8k1](/packages/panique-laravel-sass)[nizsheanez/yii2-asset-converter

Less, Sass, Scss and Phamlp converter for Yii2. No system requires. yii2-composer support, Less autoupdate, customizing of output directory

64167.5k6](/packages/nizsheanez-yii2-asset-converter)[trentrichardson/cakephp-shrink

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

1619.3k](/packages/trentrichardson-cakephp-shrink)

PHPackages © 2026

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