PHP code example of senet-eindhoven / azure-keyvault-php

1. Go to this page and download the library: Download senet-eindhoven/azure-keyvault-php 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/ */

    

senet-eindhoven / azure-keyvault-php example snippets




use Senet\AzureKeyVault\Secret;

$keyvault = new Secret(
    'my-tenant',
    'https://my-keyvault-entity.vault.azure.net/',
    'clienId',
    'clientSecret',
    new \GuzzleHttp\Client(), // Any PSR ClientInterface
);
echo $keyvault->getSecret('my-secret')->getValue();

composer