Skip to content

epd/LessServiceProvider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

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

About

LESS Service Provider for Silex PHP microframework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages