Download the PHP package bugo/sass-embedded-php without Composer
On this page you can find all versions of the php package bugo/sass-embedded-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bugo/sass-embedded-php
More information about bugo/sass-embedded-php
Files in bugo/sass-embedded-php
Package sass-embedded-php
Short Description A lightweight PHP bridge for native Dart Sass
License MIT
Informations about the package sass-embedded-php
sass-embedded-php
По-русски
Allows compiling SCSS/SASS to CSS through PHP using native Dart Sass.
Installation via Composer
Usage examples
Compiling SCSS file
Compiling SCSS from string
Compiling string with options
Catching compilation errors
Compiling SCSS file with change checking
This method automatically checks if the source file has been modified since the last compilation and only compiles and saves if changes are detected.
Compiling file with source maps and compressed output
Compiling string with inline source map
Options
The compiler uses the native Dart Sass binary installed into the package automatically:
| Option | Type | Description | Possible values | Default |
|---|---|---|---|---|
| syntax | string | Input syntax | 'scss' for SCSS, 'indented' or 'sass' for SASS | scss |
| style | string | Output style | 'compressed' or 'expanded' | expanded |
| includeSources | bool | Include source code in map | true or false | false |
| loadPaths | array |
Array of paths for searching Sass imports | ['./libs', './node_modules'] |
[] |
| quietDeps | bool | Suppresses warnings from dependencies | true or false | false |
| silenceDeprecations | array |
Suppresses warnings about specific deprecations | ['import', 'color-functions'] |
[] |
| verbose | bool | Enables verbose output of messages | true or false | false |
| sourceMapPath | string | inline, URL, directory, or file path for source map |
disabled | |
| url | string | Sets the source URL used by Sass and source maps | file or HTTP(S) URL | auto in compileFile(), unset in compileString() |
| sourceFile | string | Sets the virtual source filename for bridge processing | e.g. style.scss |
internal bridge default |
Options are passed only as an Options object, either for the entire compiler or for a specific method call:
All available options in Options default to null, which means the option was not explicitly set. The Default column describes the effective compiler behavior in that case.
All versions of sass-embedded-php with dependencies
composer-plugin-api Version ^2.0
symfony/process Version ^7.4|^8.1
ext-zip Version *