PHP code example of covaleski / sass-php
1. Go to this page and download the library: Download covaleski/sass-php library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
covaleski / sass-php example snippets
use Covaleski\SassPhp\Sass\Sass;
Sass::build()
->setStyle(Sass::COMPRESSED)
->generateSourceMap(false)
->setInputFile('input.scss')
->setOutputFile('output.css')
->getProcess()
->run();
sh
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