PHASS
A simple script to compile SASS to CSS automatically with pure PHP using the scssphp compiler written by Leaf Corcoran.
How to install
You can download the repository files and installs the dependencies with the composer:
$ composer install
How to use
Open the example folder and see an example of use:
Phass::watch("scss/", "css/");
The first parameter is the relative path to your scss folder and the second parameter is the relative path to your css folder.
Tip
To perform automatic compilation of css files in the terminal run the following command:
# Linux
$ watch -n 1 php watch.php
Read more about watch command.
# MacOS
$ while true; do php watch.php; sleep 1; done