PHPackages                             tomasvotruba/aws-sdk-php-symfony - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. tomasvotruba/aws-sdk-php-symfony

ActiveSymfony-bundle[HTTP &amp; Networking](/categories/http)

tomasvotruba/aws-sdk-php-symfony
================================

A Symfony bundle for v3 of the AWS SDK for PHP

3.0.2(2y ago)521.9k↓31.3%Apache-2.0PHPPHP ^8.1

Since Jul 10Pushed 2y ago2 watchersCompare

[ Source](https://github.com/TomasVotruba/aws-sdk-php-symfony)[ Packagist](https://packagist.org/packages/tomasvotruba/aws-sdk-php-symfony)[ RSS](/packages/tomasvotruba-aws-sdk-php-symfony/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (10)Versions (24)Used By (0)

AWS Service Provider for Symfony 6/7
====================================

[](#aws-service-provider-for-symfony-67)

[![Total Downloads](https://camo.githubusercontent.com/af1bf6cc0d400422bc70dce937c9b9e6394819eefe47440e09bd8380db6c5349/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746f6d6173766f74727562612f6177732d73646b2d7068702d73796d666f6e792e737667)](https://packagist.org/packages/tomasvotruba/aws-sdk-php-symfony)

A Symfony bundle for including the [AWS SDK for PHP](https://github.com/aws/aws-sdk-php).

Install
-------

[](#install)

```
composer require tomasvotruba/aws-sdk-php-symfony
```

and add `Aws\Symfony\AwsBundle` to the Kernel:

```
class AppKernel extends Kernel
{
    public function registerBundles(): array
    {
        return [
            ...
            new \Aws\Symfony\AwsBundle(),
        ];
    }
    ...
}
```

Configuration
-------------

[](#configuration)

By default, configuration is handled by the SDK rather than by the bundle, and no validation is performed at compile time. Full documentation of the configuration options available can be read in the [SDK Guide](http://docs.aws.amazon.com/aws-sdk-php/v3/guide/guide/configuration.html).

If AWS\_MERGE\_CONFIG environment variable is set to `true`, configuration validation and merging are enabled. The bundle validates and merges known configuration options, including for each service. Additional configuration options can be included in a single configuration file, but merging will fail if non-standard options are specified in more than once.

To use a service for any configuration value, use `@` followed by the service name, such as `@a_service`. This syntax will be converted to a service during container compilation. If you want to use a string literal that begins with `@`, you will need to escape it by adding another `@` sign.

When using the SDK from an EC2 instance, you can write `credentials: ~` to use [instance profile credentials](https://docs.aws.amazon.com/sdk-for-php/v3/developer-guide/guide_credentials.html#instance-profile-credentials). This syntax means that temporary credentials will be automatically retrieved from the EC2 instance's metadata server. It's also the preferred technique for providing credentials to applications running on that specific context.

Sample configuration can be found in the `tests/fixtures` folder for [YAML](https://github.com/tomasvotruba/aws-sdk-php-symfony/blob/master/tests/fixtures/config.yml), [PHP](https://github.com/tomasvotruba/aws-sdk-php-symfony/blob/master/tests/fixtures/config.php), and [XML](https://github.com/tomasvotruba/aws-sdk-php-symfony/blob/master/tests/fixtures/config.xml).

### Sample YML Configuration

[](#sample-yml-configuration)

The sample configuration which can be placed in `app/config/config.yml` file.

```
framework:
    secret: "Rosebud was the name of his sled."

aws:
    version: latest
    region: us-east-1
    credentials:
        key: not-a-real-key
        secret: "@@not-a-real-secret" # this will be escaped as '@not-a-real-secret'
    DynamoDb:
        region: us-west-2
    S3:
        version: '2006-03-01'
    Sqs:
        credentials: "@a_service"
    CloudSearchDomain:
        endpoint: https://search-with-some-subdomain.us-east-1.cloudsearch.amazonaws.com

services:
    a_service:
        class: Aws\Credentials\Credentials
        arguments:
            - a-different-fake-key
            - a-different-fake-secret
```

Usage
-----

[](#usage)

This bundle exposes an instance of the `Aws\Sdk` object as well as instances of each AWS client object as services to your symfony application. They are name `aws.{$namespace}`, where `$namespace` is the namespace of the service client. For instance:

ServiceInstance Ofaws.dynamodbAws\\DynamoDb\\DynamoDbClientaws.ec2Aws\\Ec2\\Ec2Clientaws.s3Aws\\S3\\S3Clientaws\_sdkAws\\SdkThe services made available depends on which version of the SDK is installed. To view a full list, run the following command from your application's root directory:

```
php bin/console debug:container aws
```

Full documentation on each of the services listed can be found in the [SDK API docs](http://docs.aws.amazon.com/aws-sdk-php/v3/api/).

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity82

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~141 days

Recently: every ~72 days

Total

23

Last Release

864d ago

Major Versions

0.1.1 → 1.0.02015-08-05

1.3.0 → v2.0.02018-01-18

2.6.1 → 3.0.02024-01-05

PHP version history (2 changes)0.1.0PHP &gt;=5.5

3.0.0PHP ^8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/924196?v=4)[Tomas Votruba](/maintainers/TomasVotruba)[@TomasVotruba](https://github.com/TomasVotruba)

---

Top Contributors

[![jeskew](https://avatars.githubusercontent.com/u/705500?v=4)](https://github.com/jeskew "jeskew (42 commits)")[![holorhythms](https://avatars.githubusercontent.com/u/38118252?v=4)](https://github.com/holorhythms "holorhythms (19 commits)")[![SamRemis](https://avatars.githubusercontent.com/u/5881835?v=4)](https://github.com/SamRemis "SamRemis (7 commits)")[![TomasVotruba](https://avatars.githubusercontent.com/u/924196?v=4)](https://github.com/TomasVotruba "TomasVotruba (7 commits)")[![stobrien89](https://avatars.githubusercontent.com/u/60306702?v=4)](https://github.com/stobrien89 "stobrien89 (7 commits)")[![kstich](https://avatars.githubusercontent.com/u/26905335?v=4)](https://github.com/kstich "kstich (6 commits)")[![diehlaws](https://avatars.githubusercontent.com/u/40442261?v=4)](https://github.com/diehlaws "diehlaws (4 commits)")[![VincentLanglet](https://avatars.githubusercontent.com/u/9052536?v=4)](https://github.com/VincentLanglet "VincentLanglet (2 commits)")[![clementtalleu](https://avatars.githubusercontent.com/u/11056924?v=4)](https://github.com/clementtalleu "clementtalleu (2 commits)")[![greg0ire](https://avatars.githubusercontent.com/u/657779?v=4)](https://github.com/greg0ire "greg0ire (2 commits)")[![aws-sdk-php-automation](https://avatars.githubusercontent.com/u/43144014?v=4)](https://github.com/aws-sdk-php-automation "aws-sdk-php-automation (1 commits)")[![Khez](https://avatars.githubusercontent.com/u/960736?v=4)](https://github.com/Khez "Khez (1 commits)")[![mpdude](https://avatars.githubusercontent.com/u/1202333?v=4)](https://github.com/mpdude "mpdude (1 commits)")[![Orkin](https://avatars.githubusercontent.com/u/1061903?v=4)](https://github.com/Orkin "Orkin (1 commits)")[![piotrpasich](https://avatars.githubusercontent.com/u/1180426?v=4)](https://github.com/piotrpasich "piotrpasich (1 commits)")[![pzorn](https://avatars.githubusercontent.com/u/159690?v=4)](https://github.com/pzorn "pzorn (1 commits)")[![SomayaB](https://avatars.githubusercontent.com/u/23043132?v=4)](https://github.com/SomayaB "SomayaB (1 commits)")[![spajxo](https://avatars.githubusercontent.com/u/12384486?v=4)](https://github.com/spajxo "spajxo (1 commits)")[![sylvaindeloux](https://avatars.githubusercontent.com/u/517622?v=4)](https://github.com/sylvaindeloux "sylvaindeloux (1 commits)")[![trandangtri](https://avatars.githubusercontent.com/u/7868214?v=4)](https://github.com/trandangtri "trandangtri (1 commits)")

---

Tags

symfonyamazonsdkawsSymfony2symfony3

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StyleECS

Type Coverage Yes

### Embed Badge

![Health badge](/badges/tomasvotruba-aws-sdk-php-symfony/health.svg)

```
[![Health](https://phpackages.com/badges/tomasvotruba-aws-sdk-php-symfony/health.svg)](https://phpackages.com/packages/tomasvotruba-aws-sdk-php-symfony)
```

###  Alternatives

[aws/aws-sdk-php-symfony

A Symfony bundle for v3 of the AWS SDK for PHP

36517.7M22](/packages/aws-aws-sdk-php-symfony)[kreait/firebase-bundle

Symfony Bundle for the Firebase Admin SDK

1534.7M2](/packages/kreait-firebase-bundle)[async-aws/async-aws-bundle

Configure all your AsyncAws services and enjoy the autowire greatness.

243.6M2](/packages/async-aws-async-aws-bundle)[async-aws/sqs

SQS client, part of the AWS SDK provided by AsyncAws.

2014.1M20](/packages/async-aws-sqs)[platinumpixs/aws-symfony2-bundle

A simple Symfony 2 bundle for including the AWS SDK for PHP.

1274.3k1](/packages/platinumpixs-aws-symfony2-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
