PHP code example of darklow / ff-silex-less-provider
1. Go to this page and download the library: Download darklow/ff-silex-less-provider 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/ */
darklow / ff-silex-less-provider example snippets
php
use FF\ServiceProvider\LessServiceProvider;
// Register FF Silex Less service provider
$this->register(new LessServiceProvider(), array(
'less.sources' => array(__DIR__.'/../../Resources/less/style.less'), // specify one or serveral .less files
'less.target' => __DIR__.'/../../web/css/style.css', // specify .css target file
'less.target_mode' => 0775, // Optional
));