PHP code example of tokenly / laravel-vault

1. Go to this page and download the library: Download tokenly/laravel-vault library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

tokenly / laravel-vault example snippets



// 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();