PHP Classes

File: application/modules/extensions/aws/

Recommend this page to a friend!
  Classes of Tran Tuan  >  Pretty PHP S3 Files Manager  >  application/modules/extensions/aws/  >  Download  
File: application/modules/extensions/aws/
Role: Auxiliary data
Content type: text/markdown
Description: Initial
Class: Pretty PHP S3 Files Manager
Web based interface to manage files in Amazon S3
Author: By
Last change:
Date: 6 years ago
Size: 8,042 bytes


Class file image Download

AWS SDK for PHP - Version 3

@awsforphp on Twitter Total Downloads Build Status Apache 2 License Gitter

The AWS SDK for PHP makes it easy for developers to access [Amazon Web Services][aws] in their PHP code, and build robust applications and software using services like Amazon S3, Amazon DynamoDB, Amazon Glacier, etc. You can get started in minutes by [installing the SDK through Composer][docs-installation] or by downloading a single zip or phar file from our [latest release][latest-release].


  • [User Guide][docs-guide] ? For both getting started and in-depth SDK usage information
  • [API Docs][docs-api] ? For details about operations, parameters, and responses
  • [Blog][sdk-blog] ? Tips & tricks, articles, and announcements
  • [Sample Project][sdk-sample] - A quick, sample project to help get you started
  • [Forum][sdk-forum] ? Ask questions, get help, and give feedback
  • [Issues][sdk-issues] ? Report issues, submit pull requests, and get involved (see [Apache 2.0 License][sdk-license])
  • [@awsforphp][sdk-twitter] ? Follow us on Twitter
  • For Version 2 of the SDK: * [User Guide][docs-guide-v2] * [API Docs][docs-api-v2]


  • Provides easy-to-use HTTP clients for all supported AWS [services][docs-services], [regions][docs-rande], and authentication protocols.
  • Is built on [Guzzle][guzzle-docs], and utilizes many of its features, including persistent connections, asynchronous requests, middlewares, etc.
  • Provides convenience features including easy result pagination via [Paginators][docs-paginators], [Waiters][docs-waiters], and simple [Result objects][docs-results].
  • Provides a [multipart uploader tool][docs-s3-multipart] for Amazon S3 and Amazon Glacier that can be paused and resumed.
  • Provides an [Amazon S3 Stream Wrapper][docs-streamwrapper], so that you can use PHP's native file handling functions to interact with your S3 buckets and objects like a local filesystem.
  • Provides the [Amazon DynamoDB Session Handler][docs-ddbsh] for easily scaling sessions on a fast, NoSQL database.
  • Automatically uses [IAM Instance Profile Credentials][aws-iam-credentials] on configured Amazon EC2 instances.

Getting Started

  1. Sign up for AWS ? Before you begin, you need to sign up for an AWS account and retrieve your [AWS credentials][docs-signup].
  2. Minimum requirements ? To run the SDK, your system will need to meet the [minimum requirements][docs-requirements], including having PHP >= 5.5 compiled with the cURL extension and cURL 7.16.2+ compiled with a TLS backend (e.g., NSS or OpenSSL).
  3. Install the SDK ? Using [Composer] is the recommended way to install the AWS SDK for PHP. The SDK is available via [Packagist] under the [`aws/aws-sdk-php`][install-packagist] package. Please see the [Installation section of the User Guide][docs-installation] for more detailed information about installing the SDK through Composer and other means.
  4. Using the SDK ? The best way to become familiar with how to use the SDK is to read the [User Guide][docs-guide]. The [Getting Started Guide][docs-quickstart] will help you become familiar with the basic concepts.

Quick Examples

Create an Amazon S3 client

// Require the Composer autoloader.
require 'vendor/autoload.php';

use Aws\S3\S3Client;

// Instantiate an Amazon S3 client.
$s3 = new S3Client([
    'version' => 'latest',
    'region'  => 'us-west-2'

Upload a file to Amazon S3

// Upload a publicly accessible file. The file size and type are determined by the SDK.
try {
        'Bucket' => 'my-bucket',
        'Key'    => 'my-object',
        'Body'   => fopen('/path/to/file', 'r'),
        'ACL'    => 'public-read',
} catch (Aws\Exception\S3Exception $e) {
    echo "There was an error uploading the file.\n";

Related Projects

  • [AWS Service Provider for Laravel][mod-laravel]
  • [AWS SDK ZF2 Module][mod-zf2]
  • [AWS Service Provider for Silex][mod-silex]
  • [AWS SDK Bundle for Symfony][mod-symfony]
  • [Guzzle Version 6][guzzle-docs] ? PHP HTTP client and framework
  • Other [AWS SDKs & Tools]aws-tools

[sdk-website]: [sdk-forum]: [sdk-issues]: [sdk-license]: [sdk-blog]: [sdk-twitter]: [sdk-sample]:

[install-packagist]: [latest-release]:

[docs-api]: [docs-guide]: [docs-api-v2]: [docs-guide-v2]: [docs-contribution]: [docs-migration]: [docs-signup]: [docs-requirements]: [docs-installation]: [docs-quickstart]: [docs-paginators]: [docs-waiters]: [docs-results]: [docs-exceptions]: [docs-wire-logging]: [docs-ddbsh]: [docs-rande]: [docs-streamwrapper]: [docs-s3-transfer]: [docs-s3-multipart]:

[aws]: [aws-iam-credentials]: [aws-tools]: [guzzle-docs]: [composer]: [packagist]: [psr-7]: [psr-4]: [psr-1]: [psr-2]:

[mod-laravel]: [mod-zf2]: [mod-silex]: [mod-symfony]:

For more information send a message to info at phpclasses dot org.