sanchescom/laravel-vault

A Laravel interface for Hashicorp Vault
1,206 2
Install
composer require sanchescom/laravel-vault
Latest Version:1.0.3
PHP:~5.6|~7.0
License:MIT
Last Updated:Aug 5, 2019
Links: GitHub  ·  Packagist
Maintainer: sanchescom

Laravel vault

A Laravel interface for Hashicorp Vault.

This is a wrapper around jippi/vault-php-sdk.

Installing

Require this package, with Composer, in the root directory of your project.

$ composer require sanchescom/laravel-vault

Laravel 5.x:

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

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

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

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

Usage

<?php

namespace App\Http\Controllers;

use Sanchescom\Vault\Facades\Vault;

class ExampleController extends Controller
{
    protected $sealStatus;
    
    /**
     * Create a new controller instance.
     *
     * @return void
     */
    public function __construct()
    {
        $this->sealStatus = Vault::sys()->sealStatus();
        
        $vault = Vault::setToken('1389b58b-0000-4800-a000-1d8869aee825');
        $vault->sys()->seal();
    }
}

Related Packages

tokenly/laravel-vault

A Laravel interface for Hashicorp Vault

17,579 17
codybuell/laravault-auth

Package for authenticating Laravel against Hashicorp's Vault.

1 0
lucasberto/laravel-vault

An easy Laravel integration for HashiCorp Vault

7,662 5
yaangvu/php-consul-vault

Php Consul Vault SDK And Laravel wrapper

5,835 0
polokij/laravel-vault-env

Hashicorp Vault client for Laravel with possibility set the env variables from V...

5,108 4

Version History

Version Released PHP Laravel License
1.0.3 ~5.6|~7.0 ~5.2 MIT
1.0.2 ~5.6|~7.0 ~5.2 MIT
1.0.1 ~5.6|~7.0 ~5.2 MIT
v0.2.3 ~5.6|~7.0 ~5.2 MIT
v0.2.2 ~5.6|~7.0 ~5.2 MIT