minhajul/aws-secret-manager

Laravel implementation of AWS Secret Manager

Installs: 737

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/minhajul/aws-secret-manager

1.0.0 2023-08-12 16:15 UTC

This package is auto-updated.

Last update: 2025-12-04 09:50:42 UTC


README

Easy implementation of AWS secret manager just to get the key value pair of specific secret id.

Installation

You can install the package via composer:

composer require minhajul/aws-secret-manager

You can publish the config file with:

php artisan vendor:publish --tag="aws-secret-manager-config"

This is the contents of the published config file:

return [
    'aws_secret_key_id' => env('AWS_ACCESS_KEY_ID'),
    'aws_secret_access_key' => env('AWS_SECRET_ACCESS_KEY'),
    'aww_default_region' => env('AWS_DEFAULT_REGION')
];

Usage

use Minhajul\AwsSecretManager\AwsSecretManager;

$awsSecretManager = new AwsSecretManager();
dd($awsSecretManager->getSecretKey('local_encryption_key'));

Testing

composer test

Credits

License

The MIT License (MIT). Please see License File for more information.