Download
Download the latest AWS SDK for PHP
New Features
| Change | Description |
|---|---|
|
Amazon S3 CopyPart |
The new CopyPart operation in the Amazon S3 API allows you to use an existing object as a part in an multipart upload. Using the CopyPart operation with the AWS SDK for PHP is easy: // Define a gigabyte
define('GB', 1024 * 1024 * 1024);
// Instantiate the class
$s3 = new AmazonS3();
// Copy a part. The source file MUST be larger than 5 GB.
$response = $s3->copy_part(
// Source
array( 'bucket' => 'my-bucket', 'filename' => 'movie.mp4' ),
// Destination
array( 'bucket' => 'my-bucket', 'filename' => 'movie2.mp4' ),
// Upload ID
'f_JM_zwhU37pj1tS.F2BXVWUJtGcNso1WEikZImjrBCYUbUQwNnOUwX.Z00O1QmKQXAjqQBD4BVZRGmEXAMPLE--',
// Part Number
1,
// Optional parameters
array( 'range' => '0-' . 5*GB )
);
|
Known Issues
| Issue | Description |
|---|---|
|
2GB limit for 32-bit stacks |
Because PHP's integer type is signed and many platforms use 32-bit integers, the AWS SDK for PHP does not correctly handle files larger than 2GB on a 32-bit stack (whereby "stack" includes CPU, OS, web server, and PHP binary). This is a well-known PHP issue. For more information, please see: PHP filesize: Return values. A workaround is suggested in AmazonS3::create_mpu_object() with files bigger than 2GB. |
Supported API Versions
The AWS SDK for PHP supports the following services and API versions:
| Service | API Version |
|---|---|
| Amazon CloudFront | 2010-11-01 |
| Amazon CloudWatch | 2010-08-01 |
| Amazon Elastic Compute Cloud (Amazon EC2) with Amazon Virtual Private Cloud (Amazon VPC) | 2011-05-15 |
| Amazon Elastic MapReduce (Amazon EMR) | 2009-03-31 |
| Amazon Relational Database Service (Amazon RDS) | 2011-04-01 |
| Amazon Simple Storage Service (Amazon S3) | 2006-03-01 |
| Amazon SimpleDB | 2009-04-15 |
| Amazon Simple Email Service (Amazon SES) | 2010-12-01 |
| Amazon Simple Notification Service (Amazon SNS) | 2010-03-31 |
| Amazon Simple Queue Service (Amazon SQS) | 2009-02-01 |
| Auto Scaling | 2010-08-01 |
| AWS CloudFormation | 2010-05-15 |
| AWS Elastic Beanstalk | 2010-12-01 |
| AWS Identity and Access Management | 2010-05-08 |
| AWS Import/Export | 2010-06-01 |
| Elastic Load Balancing (ELB) | 2011-04-05 |