jppreusdev / aws-sdk-php
AWS SDK for PHP - Use Amazon Web Services in your PHP project
Requires
- php: >=5.5
- ext-json: *
- ext-pcre: *
- ext-simplexml: *
- guzzlehttp/guzzle: ^5.3.3|^6.2.1
- guzzlehttp/promises: ~1.0
- guzzlehttp/psr7: ^1.4.1
- mtdowling/jmespath.php: ~2.2
Requires (Dev)
- ext-dom: *
- ext-openssl: *
- ext-pcntl: *
- ext-sockets: *
- andrewsville/php-token-reflection: ^1.4
- aws/aws-php-sns-message-validator: ~1.0
- behat/behat: ~3.0
- doctrine/cache: ~1.4
- nette/neon: ^2.3
- phpunit/phpunit: ^4.8.35|^5.4.3
- psr/cache: ^1.0
- psr/simple-cache: ^1.0
Suggests
- ext-curl: To send requests using cURL
- ext-openssl: Allows working with CloudFront private distributions and verifying received SNS messages
- ext-sockets: To use client-side monitoring
- aws/aws-php-sns-message-validator: To validate incoming SNS notifications
- doctrine/cache: To use the DoctrineCacheAdapter
- 3.121.1
- 3.121.0
- 3.120.0
- 3.119.0
- 3.118.0
- 3.117.2
- 3.117.1
- 3.117.0
- 3.116.0
- 3.115.2
- 3.115.1
- 3.115.0
- 3.114.1
- 3.114.0
- 3.113.0
- 3.112.35
- 3.112.34
- 3.112.33
- 3.112.32
- 3.112.31
- 3.112.30
- 3.112.29
- 3.112.28
- 3.112.27
- 3.112.26
- 3.112.25
- 3.112.24
- 3.112.23
- 3.112.22
- 3.112.21
- 3.112.20
- 3.112.19
- 3.112.18
- 3.112.17
- 3.112.16
- 3.112.15
- 3.112.14
- 3.112.13
- 3.112.12
- 3.112.11
- 3.112.10
- 3.112.9
- 3.112.8
- 3.112.7
- 3.112.6
- 3.112.5
- 3.112.4
- 3.112.3
- 3.112.2
- 3.112.1
- 3.112.0
- 3.111.2
- 3.111.1
- 3.111.0
- 3.110.11
- 3.110.10
- 3.110.9
- 3.110.8
- 3.110.7
- 3.110.6
- 3.110.5
- 3.110.4
- 3.110.3
- 3.110.2
- 3.110.1
- 3.110.0
- 3.109.8
- 3.109.7
- 3.109.6
- 3.109.5
- 3.109.4
- 3.109.3
- 3.109.2
- 3.109.1
- 3.109.0
- 3.108.6
- 3.108.5
- 3.108.4
- 3.108.3
- 3.108.2
- 3.108.1
- 3.108.0
- 3.107.8
- 3.107.7
- 3.107.6
- 3.107.5
- 3.107.4
- 3.107.3
- 3.107.2
- 3.107.1
- 3.107.0
- 3.106.1
- 3.106.0
- 3.105.0
- 3.104.1
- 3.104.0
- 3.103.2
- 3.103.1
- 3.103.0
- 3.102.1
- 3.102.0
- 3.101.1
- 3.101.0
- 3.100.9
- 3.100.8
- 3.100.7
- 3.100.6
- 3.100.5
- 3.100.4
- 3.100.3
- 3.100.2
- 3.100.1
- 3.100.0
- 3.99.4
- 3.99.3
- 3.99.2
- 3.99.1
- 3.99.0
- 3.98.0
- 3.97.0
- 3.96.0
- 3.95.0
- 3.94.3
- 3.94.2
- 3.94.1
- 3.94.0
- 3.93.12
- 3.93.11
- 3.93.10
- 3.93.9
- 3.93.8
- 3.93.7
- 3.93.6
- 3.93.5
- 3.93.4
- 3.93.3
- 3.93.2
- 3.93.1
- 3.93.0
- 3.92.5
- 3.92.4
- 3.92.3
- 3.92.2
- 3.92.1
- 3.92.0
- 3.91.6
- 3.91.5
- 3.91.4
- 3.91.3
- 3.91.2
- 3.91.1
- 3.91.0
- 3.90.13
- 3.90.12
- 3.90.11
- 3.90.10
- 3.90.9
- 3.90.8
- 3.90.7
- 3.90.6
- 3.90.5
- 3.90.4
- 3.90.3
- 3.90.2
- 3.90.1
- 3.90.0
- 3.89.1
- 3.89.0
- 3.88.1
- 3.88.0
- 3.87.23
- 3.87.22
- 3.87.21
- 3.87.20
- 3.87.19
- 3.87.18
- 3.87.17
- 3.87.16
- 3.87.15
- 3.87.14
- 3.87.13
- 3.87.12
- 3.87.11
- 3.87.10
- 3.87.9
- 3.87.8
- 3.87.7
- 3.87.6
- 3.87.5
- 3.87.4
- 3.87.3
- 3.87.2
- 3.87.1
- 3.87.0
- 3.86.3
- 3.86.2
- 3.86.1
- 3.86.0
- 3.85.2
- 3.85.1
- 3.85.0
- 3.84.0
- 3.83.0
- 3.82.6
- 3.82.5
- 3.82.4
- 3.82.3
- 3.82.2
- 3.82.1
- 3.82.0
- 3.81.7
- 3.81.6
- 3.81.5
- 3.81.4
- 3.81.3
- 3.81.2
- 3.81.1
- 3.81.0
- 3.80.3
- 3.80.2
- 3.80.1
- 3.80.0
- 3.79.0
- 3.78.0
- 3.77.0
- 3.76.0
- 3.75.0
- 3.74.1
- 3.74.0
- 3.73.0
- 3.72.1
- 3.72.0
- 3.71.6
- 3.71.5
- 3.71.4
- 3.71.3
- 3.71.2
- 3.71.1
- 3.71.0
- 3.70.4
- 3.70.3
- 3.70.2
- 3.70.1
- 3.70.0
- 3.69.16
- 3.69.15
- 3.69.14
- 3.69.13
- 3.69.12
- 3.69.11
- 3.69.10
- 3.69.9
- 3.69.8
- 3.69.7
- 3.69.6
- 3.69.5
- 3.69.4
- 3.69.3
- 3.69.2
- 3.69.1
- 3.69.0
- 3.68.1
- 3.68.0
- 3.67.22
- 3.67.21
- 3.67.20
- 3.67.19
- 3.67.18
- 3.67.17
- 3.67.16
- 3.67.15
- 3.67.14
- 3.67.13
- 3.67.12
- 3.67.11
- 3.67.10
- 3.67.9
- 3.67.8
- 3.67.7
- 3.67.6
- 3.67.5
- 3.67.4
- 3.67.3
- 3.67.2
- 3.67.1
- 3.67.0
- 3.66.2
- 3.66.1
- 3.66.0
- 3.65.2
- 3.65.1
- 3.65.0
- 3.64.15
- 3.64.14
- 3.64.13
- 3.64.12
- 3.64.11
- 3.64.10
- 3.64.9
- 3.64.8
- 3.64.7
- 3.64.6
- 3.64.5
- 3.64.4
- 3.64.3
- 3.64.2
- 3.64.1
- 3.64.0
- 3.63.7
- 3.63.6
- 3.63.5
- 3.63.4
- 3.63.3
- 3.63.2
- 3.63.1
- 3.63.0
- 3.62.14
- 3.62.13
- 3.62.12
- 3.62.11
- 3.62.10
- 3.62.9
- 3.62.8
- 3.62.7
- 3.62.6
- 3.62.5
- 3.62.4
- 3.62.3
- 3.62.2
- 3.62.1
- 3.62.0
- 3.61.10
- 3.61.9
- 3.61.8
- 3.61.7
- 3.61.6
- 3.61.5
- 3.61.4
- 3.61.3
- 3.61.2
- 3.61.1
- 3.61.0
- 3.60.0
- 3.59.0
- 3.58.0
- 3.57.1
- 3.57.0
- 3.56.6
- 3.56.5
- 3.56.4
- 3.56.3
- 3.56.2
- 3.56.1
- 3.56.0
- 3.55.12
- 3.55.11
- 3.55.10
- 3.55.9
- 3.55.8
- 3.55.7
- 3.55.6
- 3.55.5
- 3.55.4
- 3.55.3
- 3.55.2
- 3.55.1
- 3.55.0
- 3.54.6
- 3.54.5
- 3.54.4
- 3.54.3
- 3.54.2
- 3.54.1
- 3.54.0
- 3.53.2
- 3.53.1
- 3.53.0
- 3.52.36
- 3.52.35
- 3.52.34
- 3.52.33
- 3.52.32
- 3.52.31
- 3.52.30
- 3.52.29
- 3.52.28
- 3.52.27
- 3.52.26
- 3.52.25
- 3.52.24
- 3.52.23
- 3.52.22
- 3.52.21
- 3.52.20
- 3.52.19
- 3.52.18
- 3.52.17
- 3.52.16
- 3.52.15
- 3.52.14
- 3.52.13
- 3.52.12
- 3.52.11
- 3.52.10
- 3.52.9
- 3.52.8
- 3.52.7
- 3.52.6
- 3.52.5
- 3.52.4
- 3.52.3
- 3.52.2
- 3.52.1
- 3.52.0
- 3.51.0
- 3.50.0
- 3.49.1
- 3.49.0
- 3.48.14
- 3.48.13
- 3.48.12
- 3.48.11
- 3.48.10
- 3.48.9
- 3.48.8
- 3.48.7
- 3.48.6
- 3.48.5
- 3.48.4
- 3.48.3
- 3.48.2
- 3.48.1
- 3.48.0
- 3.47.1
- 3.47.0
- 3.46.0
- 3.45.3
- 3.45.2
- 3.45.1
- 3.45.0
- 3.44.2
- 3.44.1
- 3.44.0
- 3.43.0
- 3.42.0
- 3.41.0
- 3.40.0
- 3.39.2
- 3.39.1
- 3.39.0
- 3.38.5
- 3.38.4
- 3.38.3
- 3.38.2
- 3.38.1
- 3.38.0
- 3.37.1
- 3.37.0
- 3.36.37
- 3.36.36
- 3.36.35
- 3.36.34
- 3.36.33
- 3.36.32
- 3.36.31
- 3.36.30
- 3.36.29
- 3.36.28
- 3.36.27
- 3.36.26
- 3.36.25
- 3.36.24
- 3.36.23
- 3.36.22
- 3.36.21
- 3.36.20
- 3.36.19
- 3.36.18
- 3.36.17
- 3.36.16
- 3.36.15
- 3.36.14
- 3.36.13
- 3.36.12
- 3.36.11
- 3.36.10
- 3.36.9
- 3.36.8
- 3.36.7
- 3.36.6
- 3.36.5
- 3.36.4
- 3.36.3
- 3.36.2
- 3.36.1
- 3.36.0
- 3.35.3
- 3.35.2
- 3.35.1
- 3.35.0
- 3.34.2
- 3.34.1
- 3.34.0
- 3.33.4
- 3.33.3
- 3.33.2
- 3.33.1
- 3.33.0
- 3.32.7
- 3.32.6
- 3.32.5
- 3.32.4
- 3.32.3
- 3.32.2
- 3.32.1
- 3.32.0
- 3.31.10
- 3.31.9
- 3.31.8
- 3.31.7
- 3.31.6
- 3.31.5
- 3.31.4
- 3.31.3
- 3.31.2
- 3.31.1
- 3.31.0
- 3.30.4
- 3.30.3
- 3.30.2
- 3.30.1
- 3.30.0
- 3.29.9
- 3.29.8
- 3.29.7
- 3.29.6
- 3.29.5
- 3.29.4
- 3.29.3
- 3.29.2
- 3.29.1
- 3.29.0
- 3.28.10
- 3.28.9
- 3.28.8
- 3.28.7
- 3.28.6
- 3.28.5
- 3.28.4
- 3.28.3
- 3.28.2
- 3.28.1
- 3.28.0
- 3.27.5
- 3.27.4
- 3.27.3
- 3.27.2
- 3.27.1
- 3.27.0
- 3.26.5
- 3.26.4
- 3.26.3
- 3.26.2
- 3.26.1
- 3.26.0
- 3.25.8
- 3.25.7
- 3.25.6
- 3.25.5
- 3.25.4
- 3.25.3
- 3.25.2
- 3.25.1
- 3.25.0
- 3.24.9
- 3.24.8
- 3.24.7
- 3.24.6
- 3.24.5
- 3.24.4
- 3.24.3
- 3.24.2
- 3.24.1
- 3.24.0
- 3.23.3
- 3.23.2
- 3.23.1
- 3.23.0
- 3.22.11
- 3.22.10
- 3.22.9
- 3.22.8
- 3.22.7
- 3.22.6
- 3.22.5
- 3.22.4
- 3.22.3
- 3.22.2
- 3.22.1
- 3.22.0
- 3.21.6
- 3.21.5
- 3.21.4
- 3.21.3
- 3.21.2
- 3.21.1
- 3.21.0
- 3.20.16
- 3.20.15
- 3.20.14
- 3.20.13
- 3.20.12
- 3.20.11
- 3.20.10
- 3.20.9
- 3.20.8
- 3.20.7
- 3.20.6
- 3.20.5
- 3.20.4
- 3.20.3
- 3.20.2
- 3.20.1
- 3.20.0
- 3.19.33
- 3.19.32
- 3.19.31
- 3.19.30
- 3.19.29
- 3.19.28
- 3.19.27
- 3.19.26
- 3.19.25
- 3.19.24
- 3.19.23
- 3.19.22
- 3.19.21
- 3.19.20
- 3.19.19
- 3.19.18
- 3.19.17
- 3.19.16
- 3.19.15
- 3.19.14
- 3.19.13
- 3.19.12
- 3.19.11
- 3.19.10
- 3.19.9
- 3.19.8
- 3.19.7
- 3.19.6
- 3.19.5
- 3.19.4
- 3.19.3
- 3.19.2
- 3.19.1
- 3.19.0
- 3.18.39
- 3.18.38
- 3.18.37
- 3.18.36
- 3.18.35
- 3.18.34
- 3.18.33
- 3.18.32
- 3.18.31
- 3.18.30
- 3.18.29
- 3.18.28
- 3.18.27
- 3.18.26
- 3.18.25
- 3.18.24
- 3.18.23
- 3.18.22
- 3.18.21
- 3.18.20
- 3.18.19
- 3.18.18
- 3.18.17
- 3.18.16
- 3.18.15
- 3.18.14
- 3.18.13
- 3.18.12
- 3.18.11
- 3.18.10
- 3.18.9
- 3.18.8
- 3.18.7
- 3.18.6
- 3.18.5
- 3.18.4
- 3.18.3
- 3.18.2
- 3.18.1
- 3.18.0
- 3.17.6
- 3.17.5
- 3.17.4
- 3.17.3
- 3.17.2
- 3.17.1
- 3.17.0
- 3.16.0
- 3.15.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1
- 2.7.0
- 2.6.16
- 2.6.15
- 2.6.14
- 2.6.13
- 2.6.12
- 2.6.11
- 2.6.10
- 2.6.9
- 2.6.8
- 2.6.7
- 2.6.6
- 2.6.5
- 2.6.4
- 2.6.3
- 2.6.2
- 2.6.1
- 2.6.0
- 2.5.4
- 2.5.3
- 2.5.2
- 2.5.1
- 2.5.0
- 2.4.12
- 2.4.11
- 2.4.10
- 2.4.9
- 2.4.8
- 2.4.7
- 2.4.6
- 2.4.5
- 2.4.4
- 2.4.3
- 2.4.2
- 2.4.1
- 2.4.0
- 2.3.4
- 2.3.3
- 2.3.2
- 2.3.1
- 2.3.0
- 2.2.1
- 2.2.0
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
This package is auto-updated.
Last update: 2024-10-24 22:29:14 UTC
README
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.
- Ask a question on StackOverflow and tag it with
aws-php-sdk
- Come join the AWS SDK for PHP gitter
- Open a support ticket with AWS Support
- If it turns out that you may have found a bug, please open an issue
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
- Provides easy-to-use HTTP clients for all supported AWS services, regions, and authentication protocols.
- Is built on Guzzle, and utilizes many of its features, including persistent connections, asynchronous requests, middlewares, etc.
- Provides convenience features including easy result pagination via Paginators, Waiters, and simple Result objects.
- Provides a multipart uploader tool for Amazon S3 and Amazon Glacier that can be paused and resumed.
- Provides an Amazon S3 Stream Wrapper, 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 for easily scaling sessions on a fast, NoSQL database.
- Automatically uses IAM Instance Profile Credentials on configured Amazon EC2 instances.
Getting Started
- Sign up for AWS – Before you begin, you need to sign up for an AWS account and retrieve your AWS credentials.
- 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).
- 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:
Please see the Installation section of the User Guide for more detailed information about installing the SDK through Composer and other means.composer require aws/aws-sdk-php
- 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"; }
Related AWS Projects
- AWS Service Provider for Laravel
- AWS SDK ZF2 Module
- AWS Service Provider for Silex
- AWS SDK Bundle for Symfony
- Amazon SNS Message Validator for PHP - SNS validator without requiring SDK
- Guzzle Version 6 – PHP HTTP client and framework
- For Version 2 of the SDK:
- Other AWS SDKs & Tools (e.g., js, cli, ruby, python, java, etc.)