1. 安装¶
1.1. Installing via Composer¶
Install Composer
curl -sS https://getcomposer.org/installer | php
#.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¶
download phar
import phar package
<?php require ‘/path/to/aws.phar’;
1.3. Installing via Zip¶
download zip
import phar package
require ‘/path/to/aws-autoloader.php’;
Attention
该文档使用的是AWS S3 PHP SDK Version 3