tokenly/laravel-vault
最新稳定版本:v0.2.3
Composer 安装命令:
composer require tokenly/laravel-vault
包简介
A Laravel interface for Hashicorp Vault
README 文档
README
A Laravel interface for Hashicorp Vault.
This is a wrapper around https://github.com/jippi/vault-php-sdk.
Installation
Add the package via composer
composer require tokenly/laravel-vault
Usage with Laravel
Add the Service Provider
Add the following to the providers array in your application config:
Tokenly\Vault\VaultServiceProvider::class,
Set the environment variables
VAULT_ADDR=https://127.0.0.1:8200
VAULT_CA_CERT_PATH=/path/to/ca.cert
Use it
// get the vault seal status $vault = app('vault'); $seal_status = $vault->sys()->sealStatus(); // seal the vault $token = '1389b58b-0000-4800-a000-1d8869aee825'; // your vault authentication token $vault = app('vault')->setToken($token); $vault->sys()->seal();
统计信息
- 总下载量: 16.85k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 17
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-07-21