PHP code example of jmsfwk / aws-secrets-manager

1. Go to this page and download the library: Download jmsfwk/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/ */

    

jmsfwk / aws-secrets-manager example snippets




use Aws\SecretsManager\SecretsManagerClient;
use jmsfwk\AwsSecretsManager\SecretsManager;
use Psr\SimpleCache\CacheInterface;

/** @var CacheInterface $cache */

$secretsManager = new SecretsManager($cache, new SecretsManagerClient(/* aws options */));