Download the PHP package mittwald/vault-php without Composer
On this page you can find all versions of the php package mittwald/vault-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mittwald/vault-php
More information about mittwald/vault-php
Files in mittwald/vault-php
Package vault-php
Short Description A PHP client library for 'Vault by HashiCorp'
License MIT
Homepage https://www.mittwald.de/
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 mittwald/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
- Sign Data
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.6
php Version ^7.2.5 || ^8.0
psr/http-client Version ^1.0