PHPackages                             sanchescom/laravel-vault - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. sanchescom/laravel-vault

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

sanchescom/laravel-vault
========================

A Laravel interface for Hashicorp Vault

1.0.3(6y ago)21.2k1MITPHPPHP ~5.6|~7.0

Since Jul 28Pushed 6y agoCompare

[ Source](https://github.com/sanchescom/laravel-vault)[ Packagist](https://packagist.org/packages/sanchescom/laravel-vault)[ Docs](https://github.com/sanchescom/laravel-vault)[ RSS](/packages/sanchescom-laravel-vault/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (5)Versions (9)Used By (0)

Laravel vault
=============

[](#laravel-vault)

A Laravel interface for Hashicorp Vault.

This is a wrapper around [jippi/vault-php-sdk](https://github.com/jippi/vault-php-sdk).

Installing
----------

[](#installing)

Require this package, with [Composer](https://getcomposer.org/), in the root directory of your project.

```
$ composer require sanchescom/laravel-vault
```

### Laravel 5.x:

[](#laravel-5x)

After updating composer, add the ServiceProvider to the providers array in `config/app.php`

```
'providers' => [
   ...
   Sanchescom\Vault\Providers\LaravelServiceProvider::class,
],
```

### Lumen:

[](#lumen)

After updating composer add the following lines to register provider in `bootstrap/app.php`

```
$app->register(Sanchescom\Vault\Providers\LumenServiceProvider::class);
```

### Set the environment variables

[](#set-the-environment-variables)

```
VAULT_ADDRESS=https://127.0.0.1:8200
VAULT_CERTIFICATE=/path/to/ca.cert

```

Usage
-----

[](#usage)

```
