PHPackages                             zappzerapp/laravel-db-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. [Database &amp; ORM](/categories/database)
4. /
5. zappzerapp/laravel-db-vault

ActiveLibrary[Database &amp; ORM](/categories/database)

zappzerapp/laravel-db-vault
===========================

A Laravel package that stores variables with context to the database.

10PHP

Since Oct 10Pushed 1y ago1 watchersCompare

[ Source](https://github.com/zappzerapp/laravel-db-vault)[ Packagist](https://packagist.org/packages/zappzerapp/laravel-db-vault)[ RSS](/packages/zappzerapp-laravel-db-vault/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

[![Header](.github/header.jpg)](.github/header.jpg)

Laravel DB Vault
================

[](#laravel-db-vault)

A simple Laravel package that allows you to store and retrieve environment variables in a database. It supports optional encryption for additional security.

Installation
------------

[](#installation)

```
composer install zappzerapp/laravel-db-vault
```

Usage
-----

[](#usage)

### Retrieve values

[](#retrieve-values)

Use the `vault(string $context, string $key, mixed $default = null)` helper to retrieve values from the database:

```
$imageSize = vault('user', 'image_size', '1280x720');
```

### Save values

[](#save-values)

Use the `vault_set(string $context, string $key, mixed $value, bool $encrypted = false)` helper to store values in the database:

To save an unencrypted value:

```
vault_set('user', 'image_size', '1337x420');
```

To save an encrypted value:

```
vault_set('aws', 'api_key', 'secret_api_key', true);
```

Encryption
----------

[](#encryption)

The stored values can be protected with the encryption option. If the parameter `$encrypt`parameter is set to `true`, the value is encrypted before being saved. The `vault()` helper decrypts the value automatically when it is retrieved.

Licence
-------

[](#licence)

This project is licensed under the MIT licence. See the [LICENSE](LICENSE) file for details.

###  Health Score

14

—

LowBetter than 1% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity17

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2511391?v=4)[w0bble](/maintainers/w0bble)[@w0bble](https://github.com/w0bble)

---

Top Contributors

[![zappzerapp](https://avatars.githubusercontent.com/u/9962724?v=4)](https://github.com/zappzerapp "zappzerapp (3 commits)")

### Embed Badge

![Health badge](/badges/zappzerapp-laravel-db-vault/health.svg)

```
[![Health](https://phpackages.com/badges/zappzerapp-laravel-db-vault/health.svg)](https://phpackages.com/packages/zappzerapp-laravel-db-vault)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k117.2M118](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[pgvector/pgvector

pgvector support for PHP

198741.5k12](/packages/pgvector-pgvector)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
