PHPackages                             ali-eltaweel/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. [Security](/categories/security)
4. /
5. ali-eltaweel/vault

ActiveLibrary[Security](/categories/security)

ali-eltaweel/vault
==================

Secrets Repository

1.0.0(1y ago)07PHPPHP ^8.1

Since Jun 29Pushed 1y agoCompare

[ Source](https://github.com/ali-eltaweel/vault)[ Packagist](https://packagist.org/packages/ali-eltaweel/vault)[ RSS](/packages/ali-eltaweel-vault/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

Vault
=====

[](#vault)

**Secrets Repository**

- [Vault](#vault)
    - [Installation](#installation)
    - [Usage](#usage)
        - [Creating Initialization Vectors (IVs)](#creating-initialization-vectors-ivs)
        - [Saving and Loading Initialization Vectors](#saving-and-loading-initialization-vectors)
            - [Encrypt IV Files](#encrypt-iv-files)
        - [Opening Vaults](#opening-vaults)
        - [Retrieving (Setting) Value from (to) Vaults](#retrieving-setting-value-from-to-vaults)

---

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

[](#installation)

Install *vault* via Composer:

```
composer require ali-eltaweel/vault
```

Usage
-----

[](#usage)

### Creating Initialization Vectors (IVs)

[](#creating-initialization-vectors-ivs)

```
use Vault\IV\IV;

$iv = IV::forMethod('aes-128-gcm');
```

### Saving and Loading Initialization Vectors

[](#saving-and-loading-initialization-vectors)

```
$ivFile = new IVFile('path/to/iv/file');

$ivFile->data = $iv;
```

```
$ivFile = new IVFile('path/to/iv/file');

$iv = $ivFile->data;
```

#### Encrypt IV Files

[](#encrypt-iv-files)

```
$encryptionCodec = ...;

$ivFile = new IVFile('path/to/iv/file', $encryptionCodec);
```

### Opening Vaults

[](#opening-vaults)

```
use Vault\IV\IVFile;
use Vault\Vault\Vault;

$ivFile = new IVFile('path/to/iv/file');

$vault = new Vault(

  iv:         $ivFile->data,
  passphrase: 'password',
  filename:   'path/to/vault/file
);
```

### Retrieving (Setting) Value from (to) Vaults

[](#retrieving-setting-value-from-to-vaults)

```
$value->set('key', 'value'); // value can be of any type, the only requirement is that it must be serializable.

$value = $vault->get('key');
```

###  Health Score

27

—

LowBetter than 46% of packages

Maintenance46

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

414d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/45892756?v=4)[Ali Kamel](/maintainers/ali-eltaweel)[@ali-eltaweel](https://github.com/ali-eltaweel)

---

Top Contributors

[![ali-eltaweel](https://avatars.githubusercontent.com/u/45892756?v=4)](https://github.com/ali-eltaweel "ali-eltaweel (3 commits)")

### Embed Badge

![Health badge](/badges/ali-eltaweel-vault/health.svg)

```
[![Health](https://phpackages.com/badges/ali-eltaweel-vault/health.svg)](https://phpackages.com/packages/ali-eltaweel-vault)
```

###  Alternatives

[phpids/phpids

PHPIDS (PHP-Intrusion Detection System) is a simple to use, well structured, fast and state-of-the-art security layer for your PHP based web application

791150.0k2](/packages/phpids-phpids)[paragonie/ecc

PHP Elliptic Curve Cryptography library

25866.3k44](/packages/paragonie-ecc)[nicobleiler/php-passphrase

Passphrase generator with Laravel integration, inspired by Bitwarden. Uses the EFF long word list by default with support for custom wordlists.

4912.6k](/packages/nicobleiler-php-passphrase)[dwgebler/encryption

Encryption wrapper for PHP using libsodium — simple API for symmetric and asymmetric encryption, password hashing, digital signing, and message authentication.

317.5k](/packages/dwgebler-encryption)

PHPackages © 2026

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