Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zero-archive/yii-less
The Yii LessPhp extension that allows developers to compile LESS files into CSS on the fly, using the LessPhp compiler.
https://github.com/zero-archive/yii-less
less php yii yii-framework
Last synced: about 1 month ago
JSON representation
The Yii LessPhp extension that allows developers to compile LESS files into CSS on the fly, using the LessPhp compiler.
- Host: GitHub
- URL: https://github.com/zero-archive/yii-less
- Owner: zero-archive
- License: mit
- Archived: true
- Created: 2013-11-24T09:20:19.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-05-02T08:29:57.000Z (over 8 years ago)
- Last Synced: 2024-09-23T22:02:47.893Z (about 1 month ago)
- Topics: less, php, yii, yii-framework
- Language: PHP
- Homepage: https://github.com/dotzero/yii-less
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Yii LessPhp
[![Latest Stable Version](https://poser.pugx.org/dotzero/yii-less/version)](https://packagist.org/packages/dotzero/yii-less)
[![License](https://poser.pugx.org/dotzero/yii-less/license)](https://packagist.org/packages/dotzero/yii-less)**ELessPhp** is an extension for the **Yii PHP framework** that allows developers to compile LESS files into CSS on the fly, using the [LessPhp](http://leafo.net/lessphp/) compiler.
## Requirements
- [Yii Framework](https://github.com/yiisoft/yii) 1.1.14 or above
- [Composer](http://getcomposer.org/doc/)## Install
### Via composer:
```bash
$ composer require dotzero/yii-less
```- Add vendor path to your configuration file, attach component and set properties:
```php
'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:
```php
'preload' => array(
...
'less',
),
```## License
Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php