aws-sdk-php

Official repository of the AWS SDK for PHP (@awsforphp)

  • 所有者: aws/aws-sdk-php
  • 平台:
  • 許可證: Apache License 2.0
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

AWS SDK for PHP - Version 3

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

The AWS SDK for PHP makes it easy for developers to access Amazon Web
Services
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
or by downloading a single zip or phar file from our latest release.

Resources

  • User Guide – For both getting started and in-depth SDK usage information
  • API Docs – For details about operations, parameters, and responses
  • Blog – Tips & tricks, articles, and announcements
  • Sample Project - A quick, sample project to help get you started
  • Forum – Ask questions, get help, and give feedback
  • Issues – Report issues, submit pull requests, and get involved
    (see Apache 2.0 License)
  • @awsforphp – Follow us on Twitter

Getting Help

Please use these community resources for getting help. We use the GitHub issues for tracking bugs and feature requests and have limited bandwidth to address them.

Opening Issues

If you encounter a bug with aws-sdk-php we would like to hear about it. Search the existing issues and try to make sure your problem doesn’t already exist before opening a new issue. It’s helpful if you include the version of aws-sdk-php, PHP version and OS you’re using. Please include a stack trace and reduced repro case when appropriate, too.

The GitHub issues are intended for bug reports and feature requests. For help and questions with using aws-sdk-php please make use of the resources listed in the Getting Help section. There are limited resources available for handling issues and by keeping the list of open issues lean we can respond in a timely manner.

Features

Getting Started

  1. Sign up for AWS – Before you begin, you need to
    sign up for an AWS account and retrieve your AWS credentials.
  2. Minimum requirements – To run the SDK, your system will need to meet the
    minimum requirements, including having PHP >= 5.5.
    We highly recommend having it 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 package. If Composer is installed globally on your system, you can run the following in the base directory of your project to add the SDK as a dependency:
    composer require aws/aws-sdk-php
    
    Please see the
    Installation section of the User Guide 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. The
    Getting Started Guide will help you become familiar with
    the basic concepts.

Quick Examples

Create an Amazon S3 client

<?php
// 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

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

主要指標

概覽
名稱與所有者aws/aws-sdk-php
主編程語言PHP
編程語言Makefile (語言數: 5)
平台
許可證Apache License 2.0
所有者活动
創建於2012-10-17 21:28:32
推送於2025-05-19 18:07:56
最后一次提交2025-05-19 18:02:45
發布數2197
最新版本名稱3.343.14 (發布於 2025-05-19 18:02:45)
第一版名稱2.0.0 (發布於 )
用户参与
星數6.1k
關注者數219
派生數1.2k
提交數8k
已啟用問題?
問題數1583
打開的問題數26
拉請求數1168
打開的拉請求數18
關閉的拉請求數263
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?