igordrnobrega / vault-php-sdk
SDK to talk with vaultproject.io API
3.1.5
2020-01-23 18:06 UTC
Requires
- guzzlehttp/guzzle: ~6.0
- psr/log: ~1.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.16
- dev-master
- 3.1.5
- 3.1.4
- 3.1.3
- 3.1.2
- 3.1.1
- 3.1.0
- 3.0.0
- 2.0.2
- 2.0.1
- 2.0.0
- 1.0.0
- dev-dependabot/composer/guzzlehttp/psr7-1.9.1
- dev-dependabot/composer/guzzlehttp/guzzle-6.5.8
- dev-hotfix/exception-name
- dev-feature/set-get-secret-path
- dev-bugfix/secret-path-data
- dev-feature/remove-log-no-error
- dev-feature/update-ns
- dev-bugfix/rewind-response-stream
This package is auto-updated.
Last update: 2025-04-20 00:27:47 UTC
README
Installation
This library can be installed with composer:
composer require igordrnobrega/vault-php-sdk
Usage
The simple way to use this SDK, is to instantiate the service factory:
$sf = new IGN\Vault\ServiceFactory();
Then, a service could be retrieved from this factory:
$sys = $sf->get('sys');
All services methods follow the same convention:
$response = $service->method($mandatoryArgument, $someOptions);
- All API mandatory arguments are placed as first;
- All API optional arguments are directly mapped from
$someOptions
; - All methods return raw guzzle response.
Examples
The examples
directory is a pure extract from my own CakePHP 3 app using the SDK - its crude,
but should show the basics of the SDK
Available services
- sys
- data
- transit
- auth/token
- auth/approle
License
MIT