senet-eindhoven/azure-keyvault-php

Access Azure Keyvault from PHP

0.2.0 2022-07-29 14:40 UTC

This package is auto-updated.

Last update: 2024-10-29 06:13:15 UTC


README

Install

composer require senet-eindhoven/azure-keyvault-php

Usage

require 'vendor/autoload.php'

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();

Support

This library does not support the full usage of the Azure KeyVault yet. Below a list of the supported service

External Api documentation

https://docs.microsoft.com/en-us/rest/api/keyvault/