承接 rob-mccann/asseticanesthetic 相关项目开发

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

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

rob-mccann/asseticanesthetic

Composer 安装命令:

composer require rob-mccann/asseticanesthetic

包简介

An abstraction layer to enable managing of assets via a config array. A different way of implementing Assetic.

README 文档

README

An abstraction layer to enable managing of assets via a config array. A different way of implementing Assetic.

Installation

Installation is via Composer. Add the following to your composer.json file.

{
    "require": {
        "rob-mccann/asseticanesthetic": "0.1"
    }
}

Run composer install

Features

  1. Generate assets based on configuration
  2. Keeps MVC, no need for <script src="assets.php">
  3. Quick to install and use
  4. Ideal for small, quick projects where delivery is a higher requirement than raw performance

Usage

This project is framework independent. You can use it in almost any PHP project. First, you'll need to create a new object and pass it in our wonderful config array (see the examples to see what to pass in here).

$assets = new \AsseticAnesthetic\SimpleAssetManager($config);

You can then call $assets->renderJs() and $assets->renderCss() to render the HTML tags.

Most of the time, you'll want to load $config from your frameworks Config class. In Laravel and FuelPHP, it's something along the lines of $config = Config::read('assets').

Enabling / Disabling groups

Before you call the render functions, you can override your config to enable or disable groups.

// the following will enable jQuery UI if it exists, but
// will then disable the jquery-ui css from being processed and shown
$assets->enable('jquery-ui');
$assets->disable('jquery-ui', SimpleAssetManager::CSS);

Todo

  1. Write proper tests
  2. Implement more filters
  3. Improve documentation

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-03-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固