PHPackages                             rstgroup/zf-local-config-module - 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. rstgroup/zf-local-config-module

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

rstgroup/zf-local-config-module
===============================

Module responsible for adding custom config.

1.0(8y ago)010MITPHPPHP ^5.6 || ^7

Since Jul 26Pushed 8y ago13 watchersCompare

[ Source](https://github.com/rstgroup/zf-local-config-module)[ Packagist](https://packagist.org/packages/rstgroup/zf-local-config-module)[ RSS](/packages/rstgroup-zf-local-config-module/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

ZF Local Config Module
======================

[](#zf-local-config-module)

This module allows you to dynamically adjust configuration of your application via command-line interface.

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

[](#installation)

Require module with Composer:

```
composer require rstgroup/zf-local-config-module
```

The next step is adding module to ZF system configuration (`config/application.config.php`):

```
return [
    'modules' => [
        (...),
        'RstGroup\ZfLocalConfigModule',
    ],
    (...)
]
```

... and providing the required configuration in your application's config:

```
return [
    'rst_group' => [
        'local_config' => [
            'filename' => 'config/autoload/dynamic-config.local.php'
        ],
    ],
];
```

Usage
-----

[](#usage)

The module provides command-line commands to help managing local, dynamically generated, application configuration.

### Setting configuration

[](#setting-configuration)

Setting configuration is as simple as writing the line:

```
php public/index.php local-config set path.to.value string-value
```

This will result in writing the code into `config/autoload/dynamic-config.local.php` file:

```
return [
    'path' => [
        'to' => [
            'value' => 'string-value'
        ],
    ],
];
```

By default, all values passed via command line are treated as strings. To set value of any simple type, you can use JSON notation. To enable it, just add `--json` flag.

Look at some of the examples below:

```
# setting a number
php public/index.php local-config set path.to.value 1234 --json
# setting null
php public/index.php local-config set path.to.value null --json
```

JSON notation can also be used to set a structure or an array in given path:

```
# setting an array
php public/index.php local-config set array "[1,2,3,4]" --json
# setting complex structure
php public/index.php local-config set structure '{"complex":{"structure":{"x":"y"},"x":null}}' --json
```

The result of these two commands ran one after another would be a `config/autoload/dynamic-config.local.php` file like:

```
return [
    'array' => [ 1, 2, 3, 4 ],
    'complex' => [
        'structure' => [
            'x' => 'y'
        ],
        'x' => null,
    ],
];
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 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

3211d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6ffa5d2fe34b04844f854a4fa7ce073c69a500fe6352d69461756abf1b23599d?d=identicon)[rstgroup](/maintainers/rstgroup)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rstgroup-zf-local-config-module/health.svg)

```
[![Health](https://phpackages.com/badges/rstgroup-zf-local-config-module/health.svg)](https://phpackages.com/packages/rstgroup-zf-local-config-module)
```

###  Alternatives

[baidu/aip-sdk

baidu pulic ai php sdk

119104.9k6](/packages/baidu-aip-sdk)[thestringler-laravel/manipulator

A Laravel package for The Stringler

315.0k](/packages/thestringler-laravel-manipulator)

PHPackages © 2026

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