Download the PHP package deepdigs/laravel-vault-suite without Composer
On this page you can find all versions of the php package deepdigs/laravel-vault-suite. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download deepdigs/laravel-vault-suite
More information about deepdigs/laravel-vault-suite
Files in deepdigs/laravel-vault-suite
Package laravel-vault-suite
Short Description Vault-powered secrets suite for Laravel with multi-backend support and operational tooling.
License MIT
Homepage https://github.com/omar-karray/laravel-vault-suite
Informations about the package laravel-vault-suite
Laravel Vault Suite
Laravel Vault Suite connects your Laravel applications to dedicated secrets backends such as HashiCorp Vault and OpenBao. It ships with an extensible driver system, an expressive facade, and artisan tooling so you can read, write, and manage secrets without copying values into .env files.
📘 Documentation: https://omar-karray.github.io/laravel-vault-suite/
Features
- Command-first operations – Ship-ready Artisan commands (
vault:unseal,vault:enable-engine, …) for the tasks operators and developers run every day. - Fluent PHP API – Fetch, write, list, and delete secrets through a clean service/facade when you need programmatic access.
- Multi-backend driver manager – Vault and OpenBao out of the box with an extensible contract for additional backends.
- Configuration & bootstrap blueprint – Centralise driver settings today and hydrate Laravel configuration at runtime as the bootstrapper lands.
- Documentation site – Guides on GitHub Pages cover installation, commands, configuration, and the API surface.
Installation
Publish the configuration file to tailor drivers and bootstrap behaviour:
Add the relevant environment variables in your .env file (or server configuration):
Usage
Read a secret as an array:
Read a specific key from the secret payload:
Write or update a secret:
List secret keys beneath a path:
Artisan commands
-
vault:unseal– Submit key shards (from CLI or a file) and track progress until Vault is unsealed. vault:enable-engine– Mount and configure secrets engines with typed options.
See docs/commands.md for the full option reference.
Local development
- Use a multi-root VS Code workspace that includes this package and your Laravel app.
- Register the package as a Composer path repository for hot-linked development.
- Only run
composer update deepdigs/laravel-vault-suiteafter changing this package’scomposer.jsonor autoloading configuration. - When tagging for production use, publish to Packagist and update your application to use the release tag instead of the path repository.
Testing
Documentation
Project docs are powered by MkDocs. Preview locally with:
The documentation source lives in docs/ and can be deployed to GitHub Pages via mkdocs gh-deploy --clean.
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
License
The MIT License (MIT). Please see License File for more information.
Guide: using Vault Suite in development
- Install & publish config (see Installation above). Populate
VAULT_ADDR,VAULT_TOKEN, and mount settings in.envor your secret manager. -
Verify connectivity
-
Load existing secrets or commit new ones
Write new values from PHP:
- Script it – combine commands in deployment pipelines (e.g. run
vault:listto confirm a rotation, then fetch credentials for tests).
Guide: loading configuration from Vault
Until the bootstrapper ships, load secrets in a service provider or dedicated config loader:
ℹ️ When the bootstrapper lands, you will be able to map these keys directly inside
config/vault-suite.phpand hydrate them duringconfig:cache.
Guide: securing database credentials with Vault
-
Create/mount a KV engine dedicated to database credentials:
-
Store the credentials from an operator machine or CI job:
Or programmatically via Laravel Vault Suite:
- Load credentials into Laravel at runtime (see provider example above) or inject them into environment variables before
config:cache. - Rotate safely: rotate the credential in Vault (
putnew password), then redeploy the application so it fetches the updated secret. Combine with Vault’s DB secrets engine if you want automated rotation.
Deployment pattern
- Run
php artisan vault:statusduring health checks. - If Vault is sealed, run
vault:unsealwith the key shards available to your SRE team or automation. - Re-run
config:cacheafter updating configuration if you load secrets at boot.
Tips
- Never check tokens or key shards into source control. Use your CI/CD secret store.
- Grant the Laravel application a limited token (e.g. via AppRole) scoped to the paths it needs.
- Combine the suite with Vault’s audit logging to track access.
All versions of laravel-vault-suite with dependencies
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^10.0|^11.0|^12.0
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/http Version ^10.0|^11.0|^12.0