talira

AWS SDK for PHP

Call AWS services from PHP code

open sourceApache-2.0free

The AWS SDK for PHP is Amazon Web Services' official library for using AWS services, such as Amazon S3 and DynamoDB, from PHP. It provides HTTP clients for every supported service, region and authentication protocol, built on Guzzle with persistent connections, asynchronous requests and middleware, plus paginators, waiters and result objects. It adds an S3 multipart uploader that can pause and resume, an S3 stream wrapper so PHP's file functions work on buckets, an S3 encryption client and a DynamoDB session handler. Version 3 needs PHP 8.2 or newer and installs with Composer.

Problems it solves

  • upload files to S3 from my PHP application
  • call AWS services from a Laravel or plain PHP app without raw HTTP requests
  • store PHP sessions in DynamoDB

Features

  • HTTP clients for every supported AWS service, region and authentication protocol
  • Built on Guzzle: persistent connections, asynchronous requests, middleware
  • Paginators, waiters and result objects
  • Resumable multipart uploads to Amazon S3
  • S3 stream wrapper for PHP's native file functions
  • Amazon S3 encryption client and DynamoDB session handler

Limitations

  • Version 3 needs PHP 8.2 or newer1