PHPackages                             truesocialmetrics/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. truesocialmetrics/vault

ActiveLibrary[Security](/categories/security)

truesocialmetrics/vault
=======================

Vault for private keys and secret data

2.2.0(7y ago)07.2kMITPHPPHP &gt;=7.1.0

Since Jun 20Pushed 7y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (8)Used By (0)

tt-vault
========

[](#tt-vault)

Vault for private keys and secret data

[![Build Status](https://camo.githubusercontent.com/dbba2ff2b3c15dd4e4813f8a0d68218122200e5fd40075bd520eeeeff238ea63/68747470733a2f2f7472617669732d63692e6f72672f74727565736f6369616c6d6574726963732f7661756c742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/truesocialmetrics/vault)

tt-vault
========

[](#tt-vault-1)

Created by Rostislav Mykhajliw

Introduction
------------

[](#introduction)

Twee\\Service\\Vault is a simple vault for storing private keys/tokens and pther secret data

Features / Goals
----------------

[](#features--goals)

- Secure store data on filesystem
- Simple access
- Errors and leaks protections

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

[](#installation)

### Main Setup

[](#main-setup)

#### With composer

[](#with-composer)

1. Add this to your composer.json:

```
"require": {
    "truesocialmetrics/vault": "*",
}
```

2. Now tell composer to download Twee\\Service\\Vault by running the command:

```
$ php composer.phar update
```

#### Usage

[](#usage)

```
$vault = new Vault\File('path/to/vault.php');
$vault->get('my-token'); // ['abc' => 123]
$vault->get('non-exist'); // throw InvalidArgumentException
```

Sample vault.php file

```
