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

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

fourxxi/vault-bundle
====================

Symfony bundle for vault integration

v0.1.0.2(8y ago)121723[1 issues](https://github.com/4xxi/vault-bundle/issues)MITPHPPHP ^7.0

Since Dec 20Pushed 8y ago3 watchersCompare

[ Source](https://github.com/4xxi/vault-bundle)[ Packagist](https://packagist.org/packages/fourxxi/vault-bundle)[ RSS](/packages/fourxxi-vault-bundle/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (3)Dependencies (8)Versions (6)Used By (0)

Symfony bundle for integration with Vault by HashiCorp
======================================================

[](#symfony-bundle-for-integration-with-vault-by-hashicorp)

### Badges

[](#badges)

[![Build Develop Status](https://camo.githubusercontent.com/f5932b601dbd38e7a23ec335f6005c3921c083e4c8d735f22353ee296ed23d6d/68747470733a2f2f7472617669732d63692e6f72672f347878692f7661756c742d62756e646c652e7376673f6272616e63683d646576656c6f70)](https://travis-ci.org/4xxi/vault-bundle)

[![SensioLabsInsight](https://camo.githubusercontent.com/f3cb9ae9c23a6e4ea137f59f8a950bdca732e796561a3932738ad66aae530f58/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f64303034653033642d656534352d343438662d613839372d6135356663313532326664652f6269672e706e67)](https://insight.sensiolabs.com/projects/d004e03d-ee45-448f-a897-a55fc1522fde)

### Full configuration

[](#full-configuration)

```
fourxxi_vault:
    enabled: true
    auth:
        token: "571f9ef0-583b-cf7a-81af-191c43515c8e"
    connection:
        schema: http
        host: 127.0.0.1
        port: 8200
        api_version: 'v1'
```

### Examples

[](#examples)

```
    app.vault.mapper.yaml:
        class: Fourxxi\Bundle\VaultBundle\ParameterMapper\YamlParameterMapper
        arguments: ["value"]

    app.vault.mapper.simple:
        class: Fourxxi\Bundle\VaultBundle\ParameterMapper\SimpleParameterMapper

    # for cached parameters
    app.vault.parameter_provider.elasticsearch:
        class: Fourxxi\Bundle\VaultBundle\ParameterProvider\VaultParameterProvider
        factory: "fourxxi_vault.parameter_provider.vault_factory:create"
        arguments: ["secret/elasticsearch", "@app.vault.mapper.yaml"]
        tags:
            - { name: fourxxi_vault.cached_parameters }

    app.vault.parameter_provider.mysql:
        class: Fourxxi\Bundle\VaultBundle\ParameterProvider\VaultParameterProvider
        factory: "fourxxi_vault.parameter_provider.vault_factory:create"
        arguments: ["secret/mysql", "@app.vault.mapper.simple"]
        tags:
            - { name: fourxxi_vault.cached_parameters }

    # For dynamic parameters
    app.vault.enabled_parameter_provider.elasticsearch:
        class: Fourxxi\Bundle\VaultBundle\ParameterProvider\VaultParameterProvider
        factory: "fourxxi_vault.parameter_provider.vault_factory:create"
        arguments: ["secret/elasticsearch", "@app.vault.mapper.yaml"]
        tags:
            - { name: fourxxi_vault.enabled_parameter_provider, provider_name: 'el' }

    app.vault.disabled_parameters_provider.elasticsearch:
        class: Fourxxi\Bundle\VaultBundle\ParameterProvider\SimpleParameterProvider
        arguments: ["@=service('service_container').getParameterBag()"]
        tags:
            - { name: fourxxi_vault.disabled_parameter_provider, provider_name: 'el' }

    app.vault.enabled_parameter_provider.mysql:
        class: Fourxxi\Bundle\VaultBundle\ParameterProvider\VaultParameterProvider
        factory: "fourxxi_vault.parameter_provider.vault_factory:create"
        arguments: ["secret/mysql", "@app.vault.mapper.simple"]
        tags:
            - { name: fourxxi_vault.enabled_parameter_provider, provider_name: 'mysql' }

    app.vault.disabled_parameters_provider.mysql:
        class: Fourxxi\Bundle\VaultBundle\ParameterProvider\SimpleParameterProvider
        arguments: ["@=service('service_container').getParameterBag()"]
        tags:
            - { name: fourxxi_vault.disabled_parameter_provider, provider_name: 'mysql' }

    app.test.elasticsearch:
        class: App\Test
        public: true
        arguments:
            - "@=v('el','elasticsearch_host')"
            - "@=vault('el','elasticsearch_password')"

    app.test.mysql:
        class: App\Test
        public: true
        arguments:
            - "@=fourxxi_vault('mysql', 'database_pass')"
            - "@=service('fourxxi_vault.parameter_getter').get('mysql','database_host')"
```

### Running unit tests:

[](#running-unit-tests)

```
./vendor/bin/phpunit --testsuite unit
```

### Running functional tests:

[](#running-functional-tests)

Run vault:

```
docker run -d -p 8200:8200 --cap-add=IPC_LOCK -e 'VAULT_DEV_ROOT_TOKEN_ID=f29e2a2f-26ac-a182-b7a9-05be2381e200' vault
```

Run tests for Symfony 2.8

```
./vendor/bin/simple-phpunit --testsuite functional
```

Run tests for Symfony &gt;= 3

```
./vendor/bin/phpunit --testsuite functional
```

### @todo

[](#todo)

1. Adding more tests
2. Writing documentation

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.6% 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 ~21 days

Total

3

Last Release

3071d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/31620049?v=4)[Dmitrey Sysolyatin](/maintainers/dsysolyatin)[@dsysolyatin](https://github.com/dsysolyatin)

---

Top Contributors

[![dsysolyatin](https://avatars.githubusercontent.com/u/31620049?v=4)](https://github.com/dsysolyatin "dsysolyatin (35 commits)")[![rk4xxi](https://avatars.githubusercontent.com/u/31618795?v=4)](https://github.com/rk4xxi "rk4xxi (2 commits)")

---

Tags

security-toolssymfonysymfony-bundlevault-clientvault

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1175.2k](/packages/rcsofttech-audit-trail-bundle)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.8M712](/packages/sylius-sylius)[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.8M464](/packages/pimcore-pimcore)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9317.2k55](/packages/open-dxp-opendxp)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M524](/packages/shopware-core)[oro/platform

Business Application Platform (BAP)

642140.7k104](/packages/oro-platform)

PHPackages © 2026

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