PHPackages                             nohnaimer/yii2-vault-client - 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. nohnaimer/yii2-vault-client

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

nohnaimer/yii2-vault-client
===========================

This extension client for Hashicorp Vault backend.

0.1.0(2y ago)0201BSD-3-ClausePHPPHP &gt;=7.1

Since Nov 7Pushed 1y ago1 watchersCompare

[ Source](https://github.com/nohnaimer/yii2-vault-client)[ Packagist](https://packagist.org/packages/nohnaimer/yii2-vault-client)[ Docs](https://github.com/nohnaimer/yii2-vault-client)[ RSS](/packages/nohnaimer-yii2-vault-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (2)Used By (1)

yii2-vault-client
=================

[](#yii2-vault-client)

[![Latest Stable Version](https://camo.githubusercontent.com/83402cb2e261fde3655f47b8cc56aa17f44a078cc5e6ebe1afe5f85f0e585efe/68747470733a2f2f706f7365722e707567782e6f72672f6e6f686e61696d65722f796969322d7661756c742d636c69656e742f762f737461626c65)](https://packagist.org/packages/nohnaimer/yii2-vault-client)[![License](https://camo.githubusercontent.com/8f86c968d7ed4c9b636a6b0521c391e2db7138baf105f014b9bcb55d22fc2f3f/68747470733a2f2f706f7365722e707567782e6f72672f6e6f686e61696d65722f796969322d7661756c742d636c69656e742f6c6963656e7365)](https://packagist.org/packages/nohnaimer/yii2-vault-client)[![Total Downloads](https://camo.githubusercontent.com/bba8e2d43bcb668fd154528a0b43b700f7f21d5a94342aad532967dfa1e9d18b/68747470733a2f2f706f7365722e707567782e6f72672f6e6f686e61696d65722f796969322d7661756c742d636c69656e742f646f776e6c6f616473)](https://packagist.org/packages/nohnaimer/yii2-vault-client)

This extension client for Hashicorp Vault.

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

[](#installation)

The preferred way to install this extension through [composer](http://getcomposer.org/download/).

You can set the console

```
~$ composer require "nohnaimer/yii2-vault-client" --prefer-dist

```

or add

```
"require": {
    "nohnaimer/yii2-vault-client": "0.1.*"
}

```

in `require` section in `composer.json` file.

Configuration
-------------

[](#configuration)

For store php-fpm environment variables from system (macOS, Linux, Unix) need to uncomment clear\_env = no string in /etc/php/php-fpm.d/[www.conf](http://www.conf)

Need add environment variables:

```
VAULT_ADDR=https://vault.url/
VAULT_TOKEN=token
VAULT_KV_PATH=/kv
```

docker-compose example:

```
...
php:
  image: php:latest
  container_name: php
  restart: on-failure
  working_dir: /var/www
  environment:
    VAULT_ADDR: https://127:0:0:1:8200/
    VAULT_TOKEN: hvs.hrpvk3rEpD2HaHckeb976Ppw
  volumes:
    - .:/var/www:cached
  depends_on:
    - postgres
...
```

### Use yii2 migrations

[](#use-yii2-migrations)

```
class m221103_161325_vault_init extends Migration
{
    /**
     * {@inheritdoc}
     */
    public function safeUp()
    {
        $client = new Client([
            'url' => 'url',
            'token' => 'token',
        ]);

        $kv = new KVv1([
            'path' => '/kv',
            'client' => $client,
        ]);

        //add
        $kv->post('/my/secret', ['key' => 'value']);

        //delete
        $kv->delete('/my/secret/key');
    }
}
```

License
-------

[](#license)

**yii2-vault-client** it is available under a BSD 3-Clause License. Detailed information can be found in the `LICENSE.md`.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 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

917d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5c0b6415ee49d051979bc8aa20ef52e654a9598b9091db92646dbc802a82700c?d=identicon)[nohnaimer](/maintainers/nohnaimer)

---

Top Contributors

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

---

Tags

clientyii2extensionvaulthashicorp

### Embed Badge

![Health badge](/badges/nohnaimer-yii2-vault-client/health.svg)

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

###  Alternatives

[abei2017/yii2-wx

一个专注于yii2的微信sdk

1482.8k](/packages/abei2017-yii2-wx)[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)[imanilchaudhari/yii2-currency-converter

This extension will help to find out current currency conversion rate.

2011.6k](/packages/imanilchaudhari-yii2-currency-converter)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1357.2k7](/packages/richardfan1126-yii2-js-register)[degordian/yii2-webhooks

Yii2 extension for webhooks

117.1k](/packages/degordian-yii2-webhooks)

PHPackages © 2026

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