1. Go to this page and download the library: Download smithingdev/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/ */
smithingdev / laravel-vault example snippets
use Smithingdev\Vault\Facades\Vault;
Vault::read('myapp/database');
use Smithingdev\Vault\VaultService;
class RotateSecrets
{
public function __construct(private VaultService $vault) {}
public function handle(): void
{
$this->vault->read('myapp/database');
}
}
Vault::namespace(); // current Enterprise namespace (header mode), e.g. "acme/dev"
Vault::kvNamespace(); // current KV namespace path (path mode), e.g. "acme/dev/kv-secrets"
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.