s3assetmanager A asset manager that stores content in the Amazon AWS S3.

  1. Requirements
  2. Usage
  3. Resources

This extension serves as a replacement for the class CAssetManager. It publishes content on the Amazon AWS S3, allowing you to enable and use a CloudFront CDN for your assets.


  • A cache component set.
  • An account on Amazon AWS S3


To install just unzip into the protected folder . Warning! I used as a basis the extension ES3, so if you have it installed you may have name conflicts.

Basic configuration:

'components' = array(
                array('host'=>'localhost', 'port'=>11211),
        's3' => array(
            'class' => 'ext.s3.ES3',
            'aKey'=>'ADD YOUR AKEY HERE', 
        	'sKey'=>'ADD YOUR SKEY HERE',
        'assetManager' => array(
            'class' => 'S3AssetManager',
            'host' => 'Your-bucket.s3.amazonaws.com', // changing this you can point to your CloudFront hostname
            'bucket' => 'Your-bucket',
            'path' => 'assets', //or any other folder you want

Done! Your assets will be stored on Amazon!


6 0
1 437 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: Networking
Tags: assets
Developed by: Andre Metzen
Created on: Jan 12, 2012
Last updated: 11 years ago


show all

Related Extensions