PHPackages                             survos/key-value-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. survos/key-value-bundle

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

survos/key-value-bundle
=======================

manage dynamic key value(s) list

1.6.44(11mo ago)0322[2 issues](https://github.com/survos/SurvosKeyValueBundle/issues)MITPHPPHP ^8.1

Since Jan 1Pushed 10mo ago2 watchersCompare

[ Source](https://github.com/survos/SurvosKeyValueBundle)[ Packagist](https://packagist.org/packages/survos/key-value-bundle)[ Docs](https://github.com/survos/key-value-bundle)[ GitHub Sponsors](https://github.com/kbond)[ RSS](/packages/survos-key-value-bundle/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependencies (8)Versions (190)Used By (0)

KeyValueBundle
==============

[](#keyvaluebundle)

Flexible bundle to handle Key Value(s) list, e.g. a dynamic list of ips and paths to block bad bots.

Highly inspired by lsbproject/blacklist-bundle

Installation
============

[](#installation)

```
composer require survos/key-value-bundle
```

### Update database schema

[](#update-database-schema)

```
bin/console doctrine:schema:update --force
```

Purpose
-------

[](#purpose)

I found myself needing short, configurable lists in different application -- translation memory, spelling checks and most commonly, looking for paths and path patterns to include/exclude during monitoring.

Usage
-----

[](#usage)

Add properties by key, which are repeatable.

```
bin/console survos:kv:add excluded_password password
bin/console survos:kv:add excluded_password admin root 123
```

Then in code, check

```
    #[Route('/', name: 'app_homepage', methods: [Request::METHOD_GET])]
    public function index(
                          KeyValueManagerInterface $kvManager,
                          ): Response
    {
        if ($kvManager->has($password, 'excluded_password')) {
            //
        }
    }
```

This was originally design for use with BlockBotBundle

```
bin/console survos:kv:add bad_bot_path_pattern "wp-admin"
bin/console survos:kv:add bad_bot_path_pattern "phpinfo.php"
bin/console survos:kv:add bad_bot_path_pattern "\.php^"
```

```
    #[AsEventListener(RequestEvent::class, priority: 10000)]
    public function onKernelRequest(RequestEvent $event): void
    {
        foreach ($this->kvManager->get('bad_bot_path_pattern') as $pattern) {
            if (preg_match("$pattern", $path)) {
                // temporarily block this IP
            }
        }
```

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance52

Moderate activity, may be stable

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity70

Established project with proven stability

 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 ~3 days

Total

189

Last Release

343d ago

PHP version history (2 changes)1.5.123PHP ^8.1

1.5.129PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/21b39551f92ed4143772c622f9e571589c5a72c96ab3c53fe67489ce0d83e806?d=identicon)[tacman1123](/maintainers/tacman1123)

---

Top Contributors

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

---

Tags

symfonybundleKey value

###  Code Quality

Static AnalysisPHPStan, Rector

Type Coverage Yes

### Embed Badge

![Health badge](/badges/survos-key-value-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/survos-key-value-bundle/health.svg)](https://phpackages.com/packages/survos-key-value-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.

1189.8k](/packages/rcsofttech-audit-trail-bundle)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M387](/packages/easycorp-easyadmin-bundle)[web-auth/webauthn-framework

FIDO2/Webauthn library for PHP and Symfony Bundle.

515100.5k3](/packages/web-auth-webauthn-framework)[web-auth/webauthn-symfony-bundle

FIDO2/Webauthn Security Bundle For Symfony

66529.9k11](/packages/web-auth-webauthn-symfony-bundle)[jbtronics/settings-bundle

A symfony bundle to easily create typesafe, user-configurable settings for symfony applications

9773.0k3](/packages/jbtronics-settings-bundle)

PHPackages © 2026

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