Registry / utility / scssphp-scssphp

scssphp-scssphp

JSON →
library2.1.0phppackagistunverified

scssphp is a compiler for SCSS written in PHP.

composer require scssphp/scssphp
INSTALL
IMPORT
SIG · SCSSPHP-SCSSPHP
S
scssphp-scssphp
utilityphpv2.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Compiler
✓ use ScssPhp\ScssPhp\Compiler;

Compile SCSS to CSS

use ScssPhp\ScssPhp\Compiler; $compiler = new Compiler(); echo $compiler->compileString('$color: red; body { color: $color; }')->getCss();
Debug
Known issues
breakingVersion 2.0+ uses a new API; compileString() replaces compile()
fix
Use compileString() instead of compile() for version 2.x
affects: >=2.0.0
Upgrade
Version history
2.1.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
scssphp-scssphp — pip install scssphp-scssphp · libregistry