albertofem/assetic-amazon-s3-bundle

Bundle to dump assetic assets to Amazon S3

dev-master 2014-12-10 07:27 UTC

This package is not auto-updated.

Last update: 2024-10-26 16:41:45 UTC


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