albertofem/assetic-amazon-s3-bundle
Composer 安装命令:
composer require albertofem/assetic-amazon-s3-bundle
包简介
Bundle to dump assetic assets to Amazon S3
README 文档
README
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
其他信息
- 授权协议: GPLv3
- 更新时间: 2014-12-09