Home /code /PHP and SASS no RUBY /

PHP and SASS no RUBY

2:17 am, April 23, 2017

Original Post Date: 12:10 am, July 22, 2014

Really want to use sass but dont have / want to use ruby to compile it?

Here are a couple of php only options.

php-sass-watcher

https://github.com/panique/php-sass-watcher 

One simple PHP file that "watches" your SASS file folder and compiles all .scss automatically every X seconds. Sounds weird, but works perfectly. Automatic SASS compiling with 100% PHP. No Ruby used.
The php-sass-watcher is not a standalone compiler, it's just a little method that uses the excellent scssphp compiler written by Leaf Corcoran and adds automatic interval-compiling to it.

laravel-sass

https://github.com/panique/laravel-sass

Automatic SASS-to-CSS compiling for Laravel 4 (and any other framework by the way) while being in development. Every time you run your app (hitting index.php) laravel-sass will automatically compile all .scss files in your scss folder to .css files in your css folder. Support latest version of SASS (scss syntax) and mixins. Boom!