PHP code example of minhajul / aws-secret-manager
1. Go to this page and download the library: Download minhajul/aws-secret-manager library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
minhajul / aws-secret-manager example snippets
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')
];
use Minhajul\AwsSecretManager\AwsSecretManager;
$awsSecretManager = new AwsSecretManager();
dd($awsSecretManager->getSecretKey('local_encryption_key'));
bash
php artisan vendor:publish --tag="aws-secret-manager-config"