PHPackages                             masitings/aws-secret-manager - 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. masitings/aws-secret-manager

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

masitings/aws-secret-manager
============================

02PHP

Since Jan 20Pushed 3y ago1 watchersCompare

[ Source](https://github.com/masitings/aws-secret-manager-laravel)[ Packagist](https://packagist.org/packages/masitings/aws-secret-manager)[ RSS](/packages/masitings-aws-secret-manager/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Laravel AWS Secret Manager
==========================

[](#laravel-aws-secret-manager)

Integrate Laravel Application with Amazon Secret Manager.

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

[](#installation)

You can install the package via composer :

```
composer require masitings/aws-secret-manager
```

Publish Config:

```
php artisan vendor:publish --provider="Masitings\AwsSecretManager\SecretManagerProvider"

```

Usage
-----

[](#usage)

This package will load and fetch the secrets from AWS Secret Manager in any configuration variable that exists in your project. Put your env value with this

```
AWS_DEFAULT_REGION=ap-southeast-1
AWS_SECRETS_TAG_NAME=stage
AWS_SECRETS_TAG_VALUE=production
```

Change the `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` with your own credential and assign that credential with AWSSecretManager permissions.

`AWS_SECRETS_TAG_NAME` and `AWS_SECRETS_TAG_VALUE` are used to pull down all the secrets that match the tag key/value.

In order to make it works, you need to match the Key with your dot array configuration. For example, we have `database.php` configuration like this :

```
