定制 rocket/assets 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

rocket/assets

Composer 安装命令:

composer require rocket/assets

包简介

Manage and serve assets

README 文档

README

Latest Version Software License Build Status Coverage Status Quality Score Total Downloads

__ !!! This package is in development and is not yet ready for prime time !!! __

In any web application you need to load Javascript and CSS files to work. With more and more plugins, parts and modules, you need an optimal way to load them.

Require JS techniques are now the de-facto standard to load javascript. But I will bring it a step further, this is a require JS backend.

Install

Via Composer

$ composer require rocket/assets

Usage

use Assetic\AssetManager;
use Rocket\UI\Assets\Assetic\Asset\JsAsset;

Event::listen(
    'rocket.assets.js',
    function (AssetManager $am) {
        $am->set('jquery', new JsAsset(__DIR__ . '/js/jquery.js'));
        $am->set('jquery.tooltips', (new JsAsset(__DIR__ . '/js/jquery.tooltips.js'))->dependsOn('jquery'));
    }
);

Testing

All the tests live in the main project.

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-11-04