1. Go to this page and download the library: Download secretary/core 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/ */
secretary / core example snippets
use Secretary\Manager;
use Secretary\Adapter\AWS\SecretsManager\LocalJSONFileAdapter;
$manager = new Manager(
new LocalJSONFileAdapter([
'region' => 'us-east-1',
'credentials' => [
'accessKeyId' => 'myAccessKeyId',
'secretAccessKey' => 'mySecretAccessKey'
]
])
);
use Secretary\Manager;
use Secretary\Adapter\AWS\SecretsManager\LocalJSONFileAdapter;
use Secretary\Adapter\Cache\PSR6Cache\ChainAdapter;
use Cache\Adapter\Apc\ApcCachePool;
$manager = new Manager(
new ChainAdapter(
new LocalJSONFileAdapter([
'region' => 'us-east-1',
'credentials' => [
'accessKeyId' => 'myAccessKeyId',
'secretAccessKey' => 'mySecretAccessKey'
]
]),
new ApcCachePool()
)
);