2017 © Pedro Peláez
 

library yii-less

The Yii LessPhp extension that allows developers to compile LESS files into CSS on the fly, using the LessPhp compiler

image

dotzero/yii-less

The Yii LessPhp extension that allows developers to compile LESS files into CSS on the fly, using the LessPhp compiler

  • Monday, May 2, 2016
  • by dotzero
  • Repository
  • 1 Watchers
  • 0 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Yii LessPhp

Latest Stable Version License, (*1)

ELessPhp is an extension for the Yii PHP framework that allows developers to compile LESS files into CSS on the fly, using the LessPhp compiler., (*2)

Requirements

Install

Via composer:

$ composer require dotzero/yii-less
  • Add vendor path to your configuration file, attach component and set properties:
'aliases' => array(
    ...
    'vendor' => realpath(__DIR__ . '/../../vendor'),
),
'components' => array(
    ...
    'less' => array(
        'class' => 'vendor.dotzero.yii-less.ELessCompiler',
        'lessphpDir' => 'vendor.leafo.lessphp', // Path alias of lessc.inc.php directory
        'forceCompile' => false, // Force recompile LESS into CSS every initializes the component
        'files' => array( // Files to compile (relative from your base path)
            'css/style.less' => 'css/style.css',
            'css/userstyle.less' => 'css/userstyle.css',
        ),
    ),
),
  • Add the following to your config file preload section:
'preload' => array(
    ...
    'less',
),

License

Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php, (*3)

The Versions

02/05 2016

dev-master

9999999-dev

The Yii LessPhp extension that allows developers to compile LESS files into CSS on the fly, using the LessPhp compiler

  Sources   Download

MIT

The Requires

 

by Avatar dotzero

extension yii less

02/05 2016

v1.0.0

1.0.0.0

The Yii LessPhp extension that allows developers to compile LESS files into CSS on the fly, using the LessPhp compiler

  Sources   Download

MIT

The Requires

 

by Avatar dotzero

extension yii behavior