1. 安装

1.1. Installing via Composer

  1. Install Composer

#.Run the Composer command to install the latest stable version of the SDK:

php composer.phar require aws/aws-sdk-php

#.Require Composer’s autoloader:

<?php require ‘vendor/autoload.php’;

1.2. Installing via Phar

  1. download phar

  2. import phar package

    <?php require ‘/path/to/aws.phar’;

1.3. Installing via Zip

  1. download zip

  2. import phar package

    require ‘/path/to/aws-autoloader.php’;

Attention

该文档使用的是AWS S3 PHP SDK Version 3