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 1mo ago

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 2% of packages

Maintenance29

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://www.gravatar.com/avatar/c613761fee7765238fb31a2c359c380a3237b87042fd22ae76d10bc89b2d967c?d=identicon)[w0bble](/maintainers/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

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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