PHPackages                             tasmaniski/zf2-params-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. [Templating &amp; Views](/categories/templating)
4. /
5. tasmaniski/zf2-params-helper

ActiveLibrary[Templating &amp; Views](/categories/templating)

tasmaniski/zf2-params-helper
============================

View Helper for reading data from $\_GET, $\_POST and Routes in view

3.0.2(6y ago)57.4k1[1 issues](https://github.com/tasmaniski/zf2-params-helper/issues)GPL-2.0PHPPHP &gt;=5.6

Since Nov 12Pushed 5y ago5 watchersCompare

[ Source](https://github.com/tasmaniski/zf2-params-helper)[ Packagist](https://packagist.org/packages/tasmaniski/zf2-params-helper)[ Docs](https://github.com/tasmaniski)[ RSS](/packages/tasmaniski-zf2-params-helper/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (7)Used By (0)

```
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 Params Helper
=========================

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

View Helper will read params from $\_GET, $\_POST and Routes in Laminas MVC project.

Install
-------

[](#install)

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

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

After running: *composer update*

You need to register new module. Add in file **config/application.config.php**:

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

```

Use
---

[](#use)

We can use it in any view file (including layout) as key name **params()**. View Helper **params()** served to read variables from $\_POST, $\_GET or from Routes.

```
//will read all variables from $_POST
$this->params()->fromPost();

//will read all variables from Routes
$this->params()->fromRoute();

//will read all variables from $_GET
$this->params()->fromQuery();
```

Or you can get one variable by name. Second param is optional and it's default value if helper can not find the key.

```
//will read var with name 'id' and if id is null it will return 1 as default
$this->params()->fromRoute('id', 1);
```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

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

Total

5

Last Release

2224d ago

Major Versions

1.0.1 → 2.0.02016-10-12

2.0.0 → 3.0.02020-04-07

PHP version history (2 changes)1.0.1PHP &gt;=5.5

2.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 (18 commits)")

---

Tags

helperviewZend Frameworkparamslaminas framework

### Embed Badge

![Health badge](/badges/tasmaniski-zf2-params-helper/health.svg)

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

###  Alternatives

[tasmaniski/laminas-current-route

View Helper for reading current route info: Controller, Action, Module name

3612.2k](/packages/tasmaniski-laminas-current-route)[tasmaniski/zf2-current-route

View Helper for reading current route info: Controller, Action, Module name

366.9k](/packages/tasmaniski-zf2-current-route)[laminas/laminas-view

Fast and type safe HTML templating library with a flexible plugin system supporting multistep template composition

7526.3M230](/packages/laminas-laminas-view)

PHPackages © 2026

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