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

ActiveLibrary[Security](/categories/security)

fliglio/vault
=============

2.3.0(6y ago)119.0k11GPL-3.0+PHPPHP &gt;=5.6CI failing

Since Jun 5Pushed 6y ago7 watchersCompare

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

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

[![Build Status](https://camo.githubusercontent.com/a5c789b1a1d4b3051f7c23301807575ba0015d8b10940c82c93e3583d0b766de/68747470733a2f2f7472617669732d63692e6f72672f666c69676c696f2f7661756c742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/fliglio/vault)[![Latest Stable Version](https://camo.githubusercontent.com/b514826d3ba9492fa326ba5399bf04ffdb28cb39033536029140d11718246c13/68747470733a2f2f706f7365722e707567782e6f72672f666c69676c696f2f7661756c742f762f737461626c652e737667)](https://packagist.org/packages/fliglio/vault)

Vault SDK
=========

[](#vault-sdk)

Supports:

- auth
    - tokens
    - authrole
- general
    - read
    - write

Examples
--------

[](#examples)

### Configure Environment

[](#configure-environment)

The default client will leverage the environment variables `VAULT_ADDR` and `VAULT_TOKEN`

```
export VAULT_ADDR=http://localhost:8200
export VAULT_TOKEN=horde

```

### Read and Write Secrets

[](#read-and-write-secrets)

```
$secrets = [
	"foo" => "bar",
	"baz" => "boo",
];

$c = new VaultClient();

$resp = $c->write('secret/testing', $secrets);
$found = $c->read('secret/testing');

print_r($found['data']);

// Output:
// Array
// (
//     [baz] => boo
//     [foo] => bar
// )

```

### Login with AppRole

[](#login-with-approle)

```
$roleId = "...";
$secretId = "...";
$secrets = [
	"foo" => "bar",
	"baz" => "boo",
];

$c = new VaultClient(new DefaultVaultConfigFactory([
	'auth' => new AppRole($roleId, $secretId),
]));

$resp = $c->write('secret/testing', $secrets);
$found = $c->read('secret/testing');

print_r($found['data']);

// Output:
// Array
// (
//     [baz] => boo
//     [foo] => bar
// )

```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 96.2% 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 ~238 days

Total

5

Last Release

2315d ago

PHP version history (2 changes)v2.1.0PHP &gt;=5.3

2.3.0PHP &gt;=5.6

### Community

Maintainers

![](https://www.gravatar.com/avatar/0b66bcc04aae61ef3cbc3770b8eb7b8bd5dfb6706e5f71b833c194e429b975fb?d=identicon)[benschw](/maintainers/benschw)

---

Top Contributors

[![benschw](https://avatars.githubusercontent.com/u/98852?v=4)](https://github.com/benschw "benschw (25 commits)")[![sven7777](https://avatars.githubusercontent.com/u/5385519?v=4)](https://github.com/sven7777 "sven7777 (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[akaunting/laravel-firewall

Web Application Firewall (WAF) package for Laravel

999465.8k2](/packages/akaunting-laravel-firewall)[paragonie/certainty

Up-to-date, verifiable repository for Certificate Authorities

2642.4M20](/packages/paragonie-certainty)[dgtlss/warden

A Laravel package that proactively monitors your dependencies for security vulnerabilities by running automated composer audits and sending notifications via webhooks and email

8745.6k](/packages/dgtlss-warden)[acmephp/core

Raw implementation of the ACME protocol in PHP

38973.7k7](/packages/acmephp-core)[nickurt/laravel-pwned-passwords

PwnedPasswords for Laravel 11.x/12.x/13.x

187.5k](/packages/nickurt-laravel-pwned-passwords)

PHPackages © 2026

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