2017 © Pedro Peláez
 

library azurekeyvault

A simple wrapper for the Azure RM Key Vault API.

image

bentaylorwork/azurekeyvault

A simple wrapper for the Azure RM Key Vault API.

  • Monday, November 20, 2017
  • by bentaylorwork
  • Repository
  • 1 Watchers
  • 1 Stars
  • 211 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 2 Versions
  • 42 % Grown

The README.md

PHP - Azure Key Vault

Overview

A simple Proof Of Concept wrapper for the Azure RM API making it easy to comsume Azure Key Vault Secrets and Encrypt\DeCrypt strings with a Key., (*1)

More information about Azure Key Vault can be found here: https://docs.microsoft.com/en-us/azure/key-vault/, (*2)

No tests implemented., (*3)

Usage

1) Create an Azure AD application with access to the key vault you want to interact with. 2) Install the project via composer. 3) Follow one of the examples., (*4)

Example

More examples can be found in the examples folder., (*5)

require_once '../../vendor/autoload.php';

use bentaylorwork\azure\authorisation\Token as azureAuthorisation;
use bentaylorwork\azure\keyvault\Secret as keyVaultSecret;

$keyVault = new keyVaultSecret(
    [
        'accessToken'  => azureAuthorisation::getKeyVaultToken(
            [
                'appTenantDomainName' => 'contoso.onmicrosoft.com',
                'clientId'            => '00000000-0000-0000-0000-000000000000',
                'clientSecret'        => '5Ki1PHwjbCuDqPQ2f/AAydhjdfhdsdndks7887jhjhs='
            ]
        ),
        'keyVaultName' => 'keyVaultName'
    ]
);

// get the latest value for the secret
var_dump($keyVault->get('T1'));

Contributors

  • Ben Taylor

The Versions

20/11 2017

v0.1

0.1.0.0

A simple wrapper for the Azure RM Key Vault API.

  Sources   Download

MIT

The Requires

 

php azure keyvault

20/11 2017

dev-master

9999999-dev

A simple wrapper for the Azure RM Key Vault API.

  Sources   Download

MIT

The Requires

 

php azure keyvault