AWS SDK for PHP

Official AWS SDK for using Amazon Web Services from PHP applications

SDK
Composer
v3.398.1
6,204 stars
Apache License 2.0

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum. How we score it →
97 /100 Excellent
Development Activity 100
Maintenance 96
Community 92
Maturity 60
Momentum 40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation. How we score it →
76 /100 Good
Architecture 85
Code Quality 87
Innovation 65
Learning Curve 68

The AWS SDK for PHP is the official client library for calling Amazon Web Services (S3, EC2, DynamoDB, and hundreds of other services) from PHP applications. Service clients and their methods are generated from AWS API models, so the SDK stays in sync with AWS’s full service surface as new APIs and features ship.

Built on Guzzle for HTTP transport, it provides consistent patterns for authentication (including IAM and STS-based credential providers), pagination (waiters and paginators), retries, and error handling across every AWS service it wraps, making it the standard way to integrate AWS into PHP codebases.

What You Get

  • Generated PHP clients for essentially every AWS service, each following the same client/command pattern
  • Multiple credential provider chains (environment, shared config, IAM role, STS assume-role)
  • Built-in retry/backoff handling and request signing (SigV4) for all service calls
  • Waiters and paginators for polling long-running operations and iterating large result sets
  • A high-level S3 MultipartUploader/Downloader and DynamoDB session handler for common heavy-lifting tasks

Common Use Cases

  • Uploading/downloading files to and from Amazon S3 from a PHP application
  • Reading and writing items to DynamoDB tables from application backends
  • Sending messages through SQS/SNS or invoking Lambda functions from PHP services
  • Managing EC2, IAM, or other infrastructure resources programmatically from deployment scripts
  • Storing PHP session data in DynamoDB via the SDK’s built-in session handler

Under The Hood

Architecture - The SDK generates one namespace per AWS service under src/ (e.g. S3, DynamoDb, Ec2), each exposing a <Service>Client built from shared machinery in Api, Signature, Credentials, and Handler namespaces, so every service client is produced from the same JSON API models and code-generation pipeline rather than hand-written per service. Tech Stack - Built on Guzzle (guzzlehttp/guzzle, psr7, promises) for HTTP transport, jmespath.php for response querying, aws/aws-crt-php for the AWS Common Runtime bindings (checksums, signing), and PHP 8.1+ as the minimum supported version. Code Quality - Over 300 PHP test files under tests/ cover credential resolution, signing, retries, and per-service behavior, complemented by Behat feature tests for higher-level integration scenarios and PHPStan static analysis configured via phpstan.neon. API Design - Every service client follows the identical $client->operationName($args) / Aws\Result pattern regardless of which of the hundreds of AWS services is being called, which lowers the learning curve once the pattern is learned but still requires consulting per-service docs for the specific parameters each of hundreds of operations accepts.

Used by 6 apps in this directory

PHP
48%
AGPL 3.0

Crater

Invoicing Finance

8,349

Open source invoicing and billing platform for freelancers and small businesses — create estimates, track expenses, accept Stripe payments, and run recurring invoices from your own server.

View details
54
Repo Health
68
Technical
68
Dependency
Built with
PHP 48%
Vue 40%
Updated 2 years ago
PHP
85%
Other

Invoice Ninja

Invoicing Finance · Project Management

10,123

Self-hostable invoicing, time-tracking, and multi-gateway payment platform for freelancers and small businesses, with built-in e-invoicing compliance for EU and global standards.

View details
97
Repo Health
83
Technical
62
Dependency
Built with
PHP 85%
Updated 1 weeks ago
PHP
48%
AGPL 3.0

Leantime

Collaboration · Productivity · Project Management

11,672

Project management built for ADHD, autism, and dyslexia — simple as Trello, powerful as Jira

View details
90
Repo Health
68
Technical
65
Dependency
Built with
PHP 48%
CSS 20%
Blade 17%
Updated 1 weeks ago
TypeScript
44%
Other

Magic

AI Agents · Automation · Low Code Platforms

5,043

Magic is an enterprise-grade open-source AI agent platform combining a generalist AI agent, workflow engine, IM, and collaborative office system for running an AI-powered digital workforce.

View details
70
Repo Health
79
Technical
65
Dependency
Built with
TypeScript 44%
PHP 32%
Updated 1 months ago
PHP
82%
Other

Mautic

Automation · Ecommerce · Marketing

10,570

The world's largest open source marketing automation platform — own your data, run multi-channel campaigns, and escape vendor lock-in forever.

View details
97
Repo Health
76
Technical
63
Dependency
Built with
PHP 82%
Updated 1 weeks ago
PHP
63%
Other

OpnForm

Forms Surveys · Marketing

3,752

Build unlimited, embeddable forms with no code — powered by AI, logic rules, and real-time analytics

View details
90
Repo Health
75
Technical
68
Dependency
Built with
PHP 63%
Vue 29%
Updated 1 weeks ago

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers