albertofem/assetic-amazon-s3-bundle 问题修复 & 功能扩展

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

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

albertofem/assetic-amazon-s3-bundle

Composer 安装命令:

composer require albertofem/assetic-amazon-s3-bundle

包简介

Bundle to dump assetic assets to Amazon S3

README 文档

README

Scrutinizer Code Quality

Bundle to dump assetic assets to Amazon S3

Installation

Require the package in your composer.json:

composer require albertofem/assetic-amazon-s3-bundle dev-master

Enable it in your Appkernel:

public function registerBundles()
{
    $bundles = [
        ....
        new \AFM\Bundle\AsseticAmazonS3Bundle\AFMAsseticAmazonS3Bundle(),
    ]
}

Configuration

You must provided the following parameters:

aws_key: ~
aws_secret_key: ~
aws_region: ~

Also, you need change the write_to parameter to your s3 bucket:

assetic:
    write_to: s3://my_bucket

Usage

Just use the normal assets commands but using s3 as the target:

php app/console assetic:dump
php app/console assets:install s3://my-bucket

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPLv3
  • 更新时间: 2014-12-09