Easily integrate your CI applications to Amazon’s Simple Storage Solution with this library.
This library is (hardly) a port of Donovan Schönknecht’s S3 PHP Class.
- Edit config/s3.php with your appropriate settings
- Copy config and library files to your CI installation
For more detailed information about the required parameters and returns check the S3.php file.
- copyObject
- deleteObject
- getObject
- getObjectInfo
- inputFile
- inputResource
- putObject
- getAuthenticatedURL
- listBuckets
- getBucket
- putBucket
- deleteBucket
- getBucketLocation
- getBucketLogging
- setBucketLogging
- disableBucketLogging
- getHttpUploadPostParams
- getAccessControlPolicy
- setAccessControlPolicy
- listDistributions
- createDistribution
- getDistribution
- updateDistribution
- deleteDistribution
- putObjectFile
- putObjectString
// Load Library
$this->load->library('s3');
// Create a Bucket
var_dump($this->s3->putBucket('My-Bucket', $this->s3->ACL_PUBLIC_READ));
// List Buckets
var_dump($this->s3->listBuckets());