evnn/less-service-provider

LESS service provider for the Silex µframwork.

dev-master 2012-03-27 04:22 UTC

This package is not auto-updated.

Last update: 2020-01-10 14:36:50 UTC


README

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');