PHP code example of zzplab / labscss

1. Go to this page and download the library: Download zzplab/labscss 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/ */

    

zzplab / labscss example snippets


  public function get($name, $shouldThrow = true, Environment $env = null)
  {
  ...
    //$nextIsRoot = true;
  ...
  }


Zzplab\LabScss\LabCompiler;
use Zzplab\LabScss\LabServer;

$scss = new LabCompiler();
$scss->setFormatter('Leafo\ScssPhp\Formatter\Compressed');
$server = new LabServer(__DIR__, __DIR__, $scss);
$server->serve('app.min');


.../scss.php/app
.../scss.php/app.scss
.../scss.php/app/1.4.8
.../scss.php/app/1.4.8-dev