This is a Service Provider for the Silex PHP microframework to add the ability to compile LESS files within your project. It leverages the [LessElephant] (https://github.com/matteosister/LessElephant) project to do this.
You can install this using Composer by adding the following to your
composer.json
file in your project root:
"evNN/less-service-provider": "dev-master"
And update your project via Composer:
$ php composer.phar update
You must add the following to register the namespaces for both the LessElephant
and the
LessServiceProvider
components:
$app['autoloader']->registerNamespace('evNN', __DIR__ . '/vendor/evNN/less-service-provider/src');
$app['autoloader']->registerNamespace('LessElephant', __DIR__ . '/vendor/cypresslab/less-elephant/src');
$app['autoloader']->registerNamespace('Symfony\\Component\\Finder', __DIR__ . '/vendor/symfony/finder');
$app['autoloader']->registerNamespace('Symfony\\Component\\Process', __DIR__ . '/vendor/symfony/process');