Download the PHP package notocomments/vault-php without Composer
On this page you can find all versions of the php package notocomments/vault-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download notocomments/vault-php
More information about notocomments/vault-php
Files in notocomments/vault-php
Package vault-php
Short Description This is a fork of mittwald/vault-php PHP library for Vault
License MIT
Informations about the package vault-php
PHP Hashicorp Vault Client
PHP Client Library for the Hashicorp Vault Service. This Client follows the Request and Response Data equal to the Hashicorp Vault Client Documentation.
- Authentication https://www.vaultproject.io/api-docs/auth
- Secret Engines https://www.vaultproject.io/api-docs/secret
Feel free to open Pull Requests to add improvements or missing functionality.
Installation
Composer
composer require notocomments/vault-php
Implemented Functionality:
- Auth
- User/Password
- Token
- Kubernetes
- AppRole
- Secret Engines
- Transit Engine
- Encrypt/Decrypt
- Update Key Config
- Create Key
- Delete Key
- List Keys
Basic Usage
VaultClient
``
HttpClient
takes every PSR-18 compliant HTTP Client Adapter like "php-http/curl-client": "^1.7"
AuthenticationProviderInterface
Authentication Provider from /authentication/provider/*
$apiHost
Hashicorp Vault REST Endpoint URL
Bulk Requests
Using Bulk Requests also requires to iterate through the Response
and calling hasErrors
within the MetaData
of each Bulk Item to ensure it was processed successfully.
Exceptions
Calling library methods will throw exceptions, indicating where ever invalid data was provided or HTTP errors occurred or Vault Generic Endpoint Errors are encountered.
VaultException
Generic Root Exception where every exception in this library extends from.
VaultHttpException
Exception will thrown when something inside the HTTP handling will cause an error.
VaultAuthenticationException
Will be thrown when API Endpoint Authentication fails.
VaultResponseException
Will be thrown on 5xx status code errors.
InvalidRouteException
Calling an Invalid/Non Existing/Disabled Vault API Endpoint will throw this Exception.
InvalidDataException
Exception indicates a failed server payload validation.
KeyNameNotFoundException
Will be thrown when trying to request an API Endpoint where the Key Name - that is indicated within the url - will not exist.
All versions of vault-php with dependencies
guzzlehttp/psr7 Version ^2.2
php Version ^7.0 || ^8.0
php-http/httplug Version >=1.1.0