PHPackages                             constup-foss/symfony8-aws-secrets-bundle - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. constup-foss/symfony8-aws-secrets-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

constup-foss/symfony8-aws-secrets-bundle
========================================

Symfony bundle for AWS Secrets Manager integration.

1.0.2(2mo ago)316MITPHPPHP ^8.4

Since May 23Pushed 2mo agoCompare

[ Source](https://github.com/constup-foss/symfony8-aws-secrets-bundle)[ Packagist](https://packagist.org/packages/constup-foss/symfony8-aws-secrets-bundle)[ Docs](https://github.com/constup-foss/symfony-aws-secrets-bundle)[ Fund](https://www.buymeacoffee.com/puew3hvwvp)[ Patreon](https://www.patreon.com/c/NikolaStojiljkovic)[ RSS](/packages/constup-foss-symfony8-aws-secrets-bundle/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (7)Versions (5)Used By (0)

constUP Symfony AWS Secrets Manager Bundle
==========================================

[](#constup-symfony-aws-secrets-manager-bundle)

Table of Contents

- [Description](#description)
- [Prerequisites](#prerequisites)
    - [PHP and Symfony versions](#php-and-symfony-versions)
    - [Install AWS SDK PHP v3](#install-aws-sdk-php-v3)
- [Installation](#installation)
- [Configuration](#configuration)
    - [Bundle configuration](#bundle-configuration)
    - [AWS authentication](#aws-authentication)
- [Use](#use)
    - [More examples](#more-examples)
- [Development, testing and contribution](#development-testing-and-contribution)
- [License](#license)
- [Supporting development](#supporting-development)

[![Static Badge](https://camo.githubusercontent.com/b37db47746bb49d291c47c3cc8fabd15219dc271ef4a998933fcd59e950d22b3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e342d626c7565)](https://camo.githubusercontent.com/b37db47746bb49d291c47c3cc8fabd15219dc271ef4a998933fcd59e950d22b3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e342d626c7565)[![Static Badge](https://camo.githubusercontent.com/3a3f8cc0be0579a05797a480ab3e8589d7164c927c765c7dc7b3b33f14d95b15/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53796d666f6e792d382d707572706c65)](https://camo.githubusercontent.com/3a3f8cc0be0579a05797a480ab3e8589d7164c927c765c7dc7b3b33f14d95b15/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53796d666f6e792d382d707572706c65)[![Static Badge](https://camo.githubusercontent.com/5caa455d8debc46fb23abbadb45a733a937f3910a73fc875c2f7820468e1bb54/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e)](https://camo.githubusercontent.com/5caa455d8debc46fb23abbadb45a733a937f3910a73fc875c2f7820468e1bb54/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e)[![Packagist Downloads](https://camo.githubusercontent.com/19f7e8208fc5a366323909b6cd8f2beebaf566cedf2d9393e078e356c5313a4c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f6e737475702d666f73732f73796d666f6e79382d6177732d736563726574732d62756e646c65)](https://camo.githubusercontent.com/19f7e8208fc5a366323909b6cd8f2beebaf566cedf2d9393e078e356c5313a4c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f6e737475702d666f73732f73796d666f6e79382d6177732d736563726574732d62756e646c65)

Description
-----------

[](#description)

Use AWS Secrets as service container parameter values in Symfony 8.

Note

**Thank you for more than 200.000 Packagist downloads** of the previous bundle that supported Symfony 5 and 6 ([AWS Secrets Bundle](https://github.com/constup-foss/aws-secrets-bundle)). I hope it served you well!

If you are using this library, please take a couple of seconds to star it on GitHub. I have abandoned the development of the previous version because there was barely any feedback. I thought no one uses it. I’ve only found out that it was widely used after checking it on Packagist after a couple of years.

Each star gives me motivation to continue. Thanks!

Prerequisites
-------------

[](#prerequisites)

### PHP and Symfony versions

[](#php-and-symfony-versions)

This bundle is intended to be used on **Symfony 8** and **PHP 8.4+** (requirement by Symfony 8).

Note about future supportNew versions of Symfony will have their own bundles. This significantly reduces complexity when managing updates for the bundle. This bundle may or may not be compatible with Symfony 9 or any other future version. It is intended to be used on Symfony 8 only.

### Install AWS SDK PHP v3

[](#install-aws-sdk-php-v3)

You need to install AWS SDK for PHP in your project:

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

ContextSymfony’s best practices for reusable bundles contain the following statement:

```
A bundle must not embed third-party PHP libraries. It should rely on the standard Symfony autoloading instead.
```

This is to avoid having different bundles providing different versions of the same SDK.

Installation
------------

[](#installation)

```
composer require constup-foss/symfony8-aws-secrets-bundle
```

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

[](#configuration)

### Bundle configuration

[](#bundle-configuration)

By default, configuration for this bundle is loaded from `config/packages/symfony8_aws_secrets.yaml` (or its environment-specific location like `config/packages/test/symfony8_aws_secrets.yaml`).

Available configuration properties:

```
symfony8_aws_secrets:
  client_config:
    region:
    version:
    endpoint:
    profile:
    credentials:
      key:
      secret:
      token:
  delimiter:
  ignore:
```

Detailed configuration documentation is available here: [Configuration](doc/configuration.adoc).

### AWS authentication

[](#aws-authentication)

This bundle supports several methods of authentication:

- by loading a `profile` from your `~/.aws` directory
- by using long-term credentials (`AccessKeyId` and `SecretAccessKey`) from your AWS IAM user
- by using temporary AWS STS tokens

[Configuration](doc/configuration.adoc) documentation page describes how to configure this bundle for each method of authentication.

[AWS credentials and authentication](doc/aws_credentials_and_authentication.adoc) documentation page describes authenticating in different environments, including how to configure a dockerized AWS CodeBuild pipeline.

Use
---

[](#use)

Set an environment variable (for example, in your `.env` file):

```
YOUR_AWS_SECRET_VARIABLE="your_secret_name_as_saved_in_secret_manager"
```

This will usually grab a secret in JSON format. To get the value of a specific key from that JSON response, list it after a comma:

```
YOUR_AWS_SECRET_VARIABLE="your_secret_name_as_saved_in_secret_manager","your_secrets_json_property"
```

Set the value of a Symfony service container parameter to the value of your environment variable with `symfony8_aws_secrets` processor applied:

config/services.yaml

```
parameters:
  your_parameter: "%env(symfony8_aws_secrets:YOUR_AWS_SECRET_VARIABLE)%"
```

Your secret will now be loaded at runtime.

### More examples

[](#more-examples)

- [Configure DoctrineORM to use AWS Secret Manager values as MySQL connection parameters](doc/doctrine_mysql_example.adoc)

Development, testing and contribution
-------------------------------------

[](#development-testing-and-contribution)

Development, testing and contribution guide is available on a separate [documentation page](doc/development_and_maintenance.adoc).

License
-------

[](#license)

MIT License

- License file: [LICENSE.txt](LICENSE.txt)
- Online version:

Supporting development
----------------------

[](#supporting-development)

If you like this library or find it useful, consider buying me a nice cup of coffee. Coffee fuels open source.

[![bmac](doc/bmac.png)](doc/bmac.png)

[![default green](https://camo.githubusercontent.com/6d00276d6e09b1c1a8391562c40e2c387f266c3518fdb25a19429d30aa22ef7a/68747470733a2f2f63646e2e6275796d6561636f666665652e636f6d2f627574746f6e732f76322f64656661756c742d677265656e2e706e67)](https://www.buymeacoffee.com/puEW3HvWvP)

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance88

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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 ~0 days

Total

3

Last Release

62d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/286199137?v=4)[constUP](/maintainers/constup-foss)[@constup-foss](https://github.com/constup-foss)

---

Top Contributors

[![constup-foss](https://avatars.githubusercontent.com/u/286199137?v=4)](https://github.com/constup-foss "constup-foss (16 commits)")

---

Tags

awsaws-secrets-managerphpsymfonysymfony-bundlesymfony8symfonyawssymfony-8secrets-manager

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/constup-foss-symfony8-aws-secrets-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/constup-foss-symfony8-aws-secrets-bundle/health.svg)](https://phpackages.com/packages/constup-foss-symfony8-aws-secrets-bundle)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M400](/packages/easycorp-easyadmin-bundle)

PHPackages © 2026

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