The first version only includes the libraries from both Yii and AWS working together.
- Yii Framework version: v1.1.12 released on Aug 19, 2012
- AWS PHP SDK version: v1.5.15 released on Sep 26, 2012
As an example with S3 in a controller you can do the following:
$s3 = new AmazonS3(); $bucketname = "MYBUCKETNAME"; $response = $s3->create_object($bucketname, "MY FILENAME", array( 'fileUpload' => "PATH TO MY FILE", 'acl' => $s3::ACL_PUBLIC ));
This will upload the file included in the path to your bucket in S3 as “MY FILENAME”.
Dont forget to config your Key and Secret from amazon in the protected/vendors/AWS/config.inc.php.