PHP code example of doobert / aws-secrets-manager
1. Go to this page and download the library: Download doobert/aws-secrets-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/ */
doobert / aws-secrets-manager example snippets
'providers' => [
// ...
Doobert\AWSSecretsManager\AWSSecretsManagerServiceProvider::class,
],
use Doobert\AWSSecretsManager\AWSSecretsManagerService;
$service = app(AWSSecretsManagerService::class);
$secret = $service->getSecret('your-secret-name');
bash
php artisan vendor:publish --provider="Doobert\\AWSSecretsManager\\AWSSecretsManagerServiceProvider" --tag=config
bash
php artisan doobertaws:secret-refresh