承接 cakebake/php-lesscss-compiler 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

cakebake/php-lesscss-compiler

最新稳定版本:1.2.1

Composer 安装命令:

composer require cakebake/php-lesscss-compiler

包简介

Compiles less code to css code

README 文档

README

Compiles less code to css code. Generating static css, or dynamic php file which outputs css... the use depends on your ideas and the project requirements! ;)

Features

  • Compiles less to css code with oyejorge/less.php lib (Bootstrap 3 support)
  • Caching
  • Observes the less files to changes and generates only when necessary
  • Minify (optional)
  • Output CSS and/or write Stylesheet file

Install via Composer

If you do not have Composer, you may install it by following the instructions at getcomposer.org.

You can then install the package using the following command:

php composer.phar require --prefer-dist cakebake/php-lesscss-compiler "*"

or add

"cakebake/php-lesscss-compiler": "*"

to the require section of your composer.json file and run php composer.phar update.

Usage Example

For more options see source code comments in file src/LessConverter.php.

$less = new \cakebake\lesscss\LessConverter();
$less->init([
    [
        'input' => __DIR__ . '/example-1.less',
        'webFolder' => '../tests',
    ],
    [
        'input' => __DIR__ . '/example-2.less',
        'webFolder' => '../tests',
    ],
], __DIR__ . '/css/output.css');

统计信息

  • 总下载量: 774
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 7
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-V3
  • 更新时间: 2015-02-26