AWS SDK for PHP

Component ID

1027894

Component name

AWS SDK for PHP

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

49157

Component created

Component changed

Component body

Provides integration with Libraries API (2.x) and a Drush Make script to download the AWS SDK for PHP (github) (support forum).

The AWS SDK for PHP provides a library, code samples, and documentation for developers to build PHP applications that tap into the cost-effective, scalable, and reliable AWS cloud.

With the AWS SDK for PHP, developers get started in minutes using AWS infrastructure services, including Amazon Simple Storage Service (Amazon S3), Amazon Elastic Compute Cloud (Amazon EC2), Amazon SimpleDB, and more.

Configuration

The AWSSDK can be configured by using Drupal variables with the same names as the constants found in config-sample.inc.php. For example, the following can be placed in a site's settings.php file or configured through the awssdk_ui module.

$conf['aws_key'] = '...';
$conf['aws_secret'] = '...';
$conf['aws_account_id'] = '...';
$conf['aws_canonical_id'] = '...';

Usage

To include the sdk.class.php file, as is the only file required, simply execute the following (please see the libraries project for more details).

libraries_load('awssdk');

Versions

For 5.x release please see http://drupal.org/node/1396596 .

Since Drupal.org does not allow for three-part version numbers this project follows the AWS SDK for PHP 1.x development line and the release version mapping is as follows. The mapping shows the Drupal release to the Amazon release. Please ensure you are using a Drupal module and Amazon SDK pair that match the version number mapping. For example, use the 4.1 Drupal module with the 1.4.1 Amazon SDK.