darklow/ff-silex-less-provider 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

darklow/ff-silex-less-provider

Composer 安装命令:

composer require darklow/ff-silex-less-provider

包简介

Simple less php service provider for Silex

README 文档

README

Simple less php service provider for Silex that uses https://github.com/leafo/lessphp as parser.

Simply specify paths for your .less files and target .css and if your .less files are newer than final .css file, final .css will be regenerated

Installation

Create a composer.json in your projects root-directory:

{
    "require": {
        "darklow/ff-silex-less-provider": "*"
    }
}

and run:

curl -s http://getcomposer.org/installer | php
php composer.phar install

Register provider

You must specify two required parameters and one optional:

  • less.sources - Single path or array of paths of source - less files. Keep in mind that if .less file @import other .less files, you have to specify only main .less file
  • less.target - Path to target .css file
  • less.target_mode - Optionally you can specify file mode mask
<?php
use FF\ServiceProvider\LessServiceProvider;

// Register FF Silex Less service provider
$this->register(new LessServiceProvider(), array(
    'less.sources'     => array(__DIR__.'/../../Resources/less/style.less'), // specify one or serveral .less files
    'less.target'      => __DIR__.'/../../web/css/style.css', // specify .css target file
    'less.target_mode' => 0775, // Optional
));

License

'FF-Silex-Less' is licensed under the MIT license.

统计信息

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

GitHub 信息

  • Stars: 5
  • Watchers: 1
  • Forks: 6
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2012-10-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固