LessServiceProvider

Created: 2012-03-26 19:37
Updated: 2014-04-27 01:11
php

README.md

LessServiceProvider

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.

Installation

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

Important

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');
Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more