Amazon S3 PHP class
A standalone Amazon S3 (REST) client for PHP 5.2.x using CURL that does not require PEAR.
To checkout the latest source:
svn checkout http://amazon-s3-php-class.googlecode.com/svn/trunk/ s3-php
Download latest source: s3-php5-curl_0.4.0.tar.gz (20th Jul 2009)
Example usage (see example.php and the class documentation for more information):
$s3 = new S3('accessKey', 'secretKey');
$s3->putBucket('bucket', S3::ACL_PUBLIC_READ);
$s3->putObjectFile('file.doc', 'bucket', 'docs/file.doc', S3::ACL_PUBLIC_READ);
$s3->deleteObject('bucket', 'docs/file.doc');For more information visit: http://undesigned.org.za/2007/10/22/amazon-s3-php-class