定制 idealogica/asset-grinder 二次开发

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

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

idealogica/asset-grinder

最新稳定版本:1.0.27

Composer 安装命令:

composer require idealogica/asset-grinder

包简介

High level asset minification and obfuscation library

README 文档

README

1. What is AssetGrinder?

AssetGrinder is a high level asset minification and obfuscation library. It supports caching and dynamical asset generation. AssetGrinder uses uglifyjs and javascript-obfuscator under the hood so you need to install them before use.

2. Installation

composer require idealogica/asset-grinder:~1.0.0

3. Basic example

$assetHandler = new Idealogica\AssetGrinder\AssetHandler(
    ServerRequest::fromGlobals(),
    __DIR__ . '/assets',
    __DIR__ . '/public',
    $_SERVER['HOME'] . '/.npm_global/bin/uglifyjs',
    $_SERVER['HOME'] . '/.npm_global/bin/javascript-obfuscator'
);
$url = $assetHandler->buildAssetUrl('pack', ['asset1.js', 'asset2.js'], AssetHandler::TYPE_JS, false, false);

4. License

AssetGrinder is licensed under a MIT License.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-04-12