PHPackages                             tasmaniski/laminas-config-helper - 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. tasmaniski/laminas-config-helper

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

tasmaniski/laminas-config-helper
================================

Provide Controller plugin and View helper for reading a config.

v3.0.2(6y ago)65703[1 issues](https://github.com/tasmaniski/laminas-config-helper/issues)MITPHPPHP &gt;=5.6CI failing

Since Sep 30Pushed 5y ago3 watchersCompare

[ Source](https://github.com/tasmaniski/laminas-config-helper)[ Packagist](https://packagist.org/packages/tasmaniski/laminas-config-helper)[ Docs](https://github.com/tasmaniski/laminas-config-helper)[ RSS](/packages/tasmaniski-laminas-config-helper/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (4)Dependencies (4)Versions (10)Used By (0)

[![Licence](https://camo.githubusercontent.com/dcbd4ebbc5b1afba4f6d3759268acc2a1de0c79c5ad780433be262f1361a8cbf/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7461736d616e69736b692f6c616d696e61732d636f6e6669672d68656c706572)](https://camo.githubusercontent.com/dcbd4ebbc5b1afba4f6d3759268acc2a1de0c79c5ad780433be262f1361a8cbf/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7461736d616e69736b692f6c616d696e61732d636f6e6669672d68656c706572)[![PHP version](https://camo.githubusercontent.com/925223080d4b3e48960c7db39d64a01f0cdaed9e0386537055de8e25434be888/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7461736d616e69736b692f6c616d696e61732d636f6e6669672d68656c706572)](https://camo.githubusercontent.com/925223080d4b3e48960c7db39d64a01f0cdaed9e0386537055de8e25434be888/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7461736d616e69736b692f6c616d696e61732d636f6e6669672d68656c706572)

```
IMPORTANT NOTE:
If you find this package useful,
please click on a star button and let me know,
so I will gladly continue with the updates.
```

Laminas MVC - Config Helper
===========================

[](#laminas-mvc---config-helper)

Simple and small lib for reading a config array in all Controllers and all Views files.

Instalation
-----------

[](#instalation)

Add in your **composer.json** file:

```
{
    "require": {
        "tasmaniski/laminas-config-helper": "^3.0"
    }
}
```

After running: `composer update`You need to register new module. Add in file **config/application.config.php**:

```
'modules' => array(
    '...',
    'ConfigHelper'
),

```

Use
---

[](#use)

You can use it **in any of your controllers or view** files (including layout.phtml). First you have to add key in any of your config files (config/autoload/\*) eg. **"key\_from\_config"**

```
//read specific key registred in your config file.
$keyFromConfig = $this->configHelp('key_from_config');

// or in new version of PHP
$keyFromConfig = $this->configHelp()->key_from_config;
$keyFromConfig = $this->configHelp()['key_from_config']; // only for 5.4+

// this will read whole config
$config = $this->configHelp(); // return config object Laminas\Config\Config
echo $config->key_from_config;

```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity64

Established project with proven stability

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

Recently: every ~319 days

Total

7

Last Release

2225d ago

Major Versions

v1.0.1 → v2.0.02016-10-12

v2.0.1 → v3.0.02020-04-07

PHP version history (2 changes)v1.0.0PHP &gt;=5.3

v2.0.0PHP &gt;=5.6

### Community

Maintainers

![](https://www.gravatar.com/avatar/480ea974c3fa4d3b40d4d13e9206c2cd52f573ae55ffc696940b1b9e43c88ba1?d=identicon)[tasmaniski](/maintainers/tasmaniski)

---

Top Contributors

[![tasmaniski](https://avatars.githubusercontent.com/u/2909695?v=4)](https://github.com/tasmaniski "tasmaniski (35 commits)")[![mikicaivosevic](https://avatars.githubusercontent.com/u/2887620?v=4)](https://github.com/mikicaivosevic "mikicaivosevic (1 commits)")[![rarog](https://avatars.githubusercontent.com/u/2520875?v=4)](https://github.com/rarog "rarog (1 commits)")

---

Tags

pluginhelperconfigZend Framework

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tasmaniski-laminas-config-helper/health.svg)

```
[![Health](https://phpackages.com/badges/tasmaniski-laminas-config-helper/health.svg)](https://phpackages.com/packages/tasmaniski-laminas-config-helper)
```

###  Alternatives

[evilfreelancer/openvpn-php

OpenVPN config generator writen on PHP

304.7k](/packages/evilfreelancer-openvpn-php)[sandrokeil/easy-config

Zend Framework 2 (zf2) module to retrieve specific module options and provides some abstract factories to create easily instances depending on configuration

113.1k1](/packages/sandrokeil-easy-config)

PHPackages © 2026

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