wernerkrauss/cdnrewrite 问题修复 & 功能扩展

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

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

wernerkrauss/cdnrewrite

最新稳定版本:0.0.3

Composer 安装命令:

composer require wernerkrauss/cdnrewrite

包简介

Rewrites all links for assets to use a cdn instead

README 文档

README

Scrutinizer Code Quality

Rewrites all links for assets to use a cdn instead. It's not responsible to upload or sync the files anywhere. Some CDNs can do this for you.

Requirements

Installation

Download and install manually or use composer.

Configuration

You have to enable this filter manually using CDNRewriteRequestFilter.cdn_rewrite config var. Also define CDNRewriteRequestFilter.cdn_domain with protocol and host.

Your config.yml might look like:

CDNRewriteRequestFilter:
  cdn_rewrite: true #global switch
  cdn_domain: 'http://cdn.mydomain.com'
  rewrite_assets: true  #rewrite stuff in assets
  rewrite_themes: false #do not rewrite stuff in themes folder

统计信息

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

GitHub 信息

  • Stars: 5
  • Watchers: 2
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-03-11