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?
已存档?
是复刻?
已锁定?
是镜像?
是私有?