PHPackages                             linkorb/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. linkorb/vault

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

linkorb/vault
=============

Vault: Store confidential data in version control

v1.0.1(10y ago)2317MITPHPPHP &gt;=5.3.0

Since May 7Pushed 10y ago3 watchersCompare

[ Source](https://github.com/linkorb/vault)[ Packagist](https://packagist.org/packages/linkorb/vault)[ Docs](http://www.github.com/linkorb/vault)[ RSS](/packages/linkorb-vault/feed)WikiDiscussions master Synced 2mo ago

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

Vault
=====

[](#vault)

[![](https://camo.githubusercontent.com/841187113f131f11b2379641128a9f4a49b4f085c8ff4f0e841811975974fc1d/68747470733a2f2f75706c6f61642e77696b696d656469612e6f72672f77696b6970656469612f636f6d6d6f6e732f382f38372f57696e6f6e61536176696e677342616e6b5661756c742e4a5047)](https://camo.githubusercontent.com/841187113f131f11b2379641128a9f4a49b4f085c8ff4f0e841811975974fc1d/68747470733a2f2f75706c6f61642e77696b696d656469612e6f72672f77696b6970656469612f636f6d6d6f6e732f382f38372f57696e6f6e61536176696e677342616e6b5661756c742e4a5047)

Securely store confidential information (passwords, ssl certificates, keys) in version control

Installing Vault
----------------

[](#installing-vault)

Vault is a tiny CLI application that you can add to your projects by adding the following line to your `composer.json`:

```
"require": {
    "linkorb/vault": "~1.0"
}

```

Run `composer update` to install the new project dependency

Using Vault
-----------

[](#using-vault)

Vault works with 2 directories:

- The `vault` directory (default `vault/`): this directory stores the confidential information in encrypted form
- The `secure` directory (default `secure/`): this directory contains your confidential files in unencrypted form, so that your application can use it. This directory will not be committed to version control, and should be added to your `.gitignore` file.

To start, create both directories, and put a confidential file in your `secure/` directory.

Type the following command, to encrypt all files in your `secure/` directory, and store then in the `vault/` directory:

```
vendor/bin/vault encrypt

```

Vault will ask for a password that will be used for encryption.

You can now check which files are stored in the vault using:

```
vendor/bin/vault ls

```

To echo the contents of a single file from vault, run:

```
vendor/bin/vault cat test.txt

```

Add your `secure/` directory to `.gitignore`, and commit the files in the `vault/` directory.

To use the files on another computer, use `git pull` to get the new files in the `vault/` directory, and run the following command to decrypt them into the new local `secure/` directory:

```
vendor/bin/vault decrypt

```

Vault will ask for a password again, and extract the files one by one into the `secure/` directory, so they can be used.

If you make any changes to files in the `secure/` directory, make sure to run `vault encrypt` again to update the contents in `vault/` so they can be sent to your version control system.

TODO:
-----

[](#todo)

- Make `vault/` and `secure/` directories configurable through a `Vaultfile`
- Allow configurations of used encryption methods
- Add a `diff` command, to check changes between vault and secure directories

License
-------

[](#license)

MIT. Please refer to the [license file](LICENSE.md) for details.

Brought to you by the LinkORB Engineering team
----------------------------------------------

[](#brought-to-you-by-the-linkorb-engineering-team)

[![](https://camo.githubusercontent.com/62fb66b034de7ea7fca9fd9776424b5348daa76ef8622caf92c2f7622003e5ef/687474703a2f2f7777772e6c696e6b6f72622e636f6d2f642f6d6574612f74696572312f696d616765732f6c696e6b6f7262656e67696e656572696e672d6c6f676f2e706e67)](https://camo.githubusercontent.com/62fb66b034de7ea7fca9fd9776424b5348daa76ef8622caf92c2f7622003e5ef/687474703a2f2f7777772e6c696e6b6f72622e636f6d2f642f6d6574612f74696572312f696d616765732f6c696e6b6f7262656e67696e656572696e672d6c6f676f2e706e67)
Check out our other projects at [linkorb.com/engineering](http://www.linkorb.com/engineering).

Btw, we're hiring!

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

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

Every ~7 days

Total

2

Last Release

3653d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1db66b320db18b8036ea68211b7d8a39e7c6da97e6fd29f59a50380ebb69d0bb?d=identicon)[joostfaassen](/maintainers/joostfaassen)

---

Top Contributors

[![joostfaassen](https://avatars.githubusercontent.com/u/411113?v=4)](https://github.com/joostfaassen "joostfaassen (2 commits)")

---

Tags

phpvaultlinkorb

### Embed Badge

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

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

###  Alternatives

[codewithkyrian/transformers

State-of-the-art Machine Learning for PHP. Run Transformers in PHP

749231.8k5](/packages/codewithkyrian-transformers)

PHPackages © 2026

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