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 today

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

28

—

LowBetter than 52% of packages

Maintenance49

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity45

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

369d 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

[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k18.7M143](/packages/mews-purifier)[paragonie/ecc

PHP Elliptic Curve Cryptography library

24820.0k37](/packages/paragonie-ecc)

PHPackages © 2026

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