PHPackages                             chris-kruining/zf3-extensions - 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. chris-kruining/zf3-extensions

AbandonedArchivedRoutestack

chris-kruining/zf3-extensions
=============================

this is an expansion on the TreeRouteStack class that the zendframework/zend-router provides

1.2.8(4y ago)0515↓100%2MITPHPPHP &gt;=7.4

Since Jul 27Pushed 4y ago1 watchersCompare

[ Source](https://github.com/chris-kruining/zf3-extensions)[ Packagist](https://packagist.org/packages/chris-kruining/zf3-extensions)[ Docs](https://github.com/chris-kruining/zf3-extensions)[ RSS](/packages/chris-kruining-zf3-extensions/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (10)Dependencies (3)Versions (20)Used By (0)

zf3-extensions
==============

[](#zf3-extensions)

this is an extension of certain zend-framework 3 packages to enable me to do certain things

Instalation
===========

[](#instalation)

```
$ composer require chris-kruining/zf3-filterablerouter
```

Configuration of filterable routes
==================================

[](#configuration-of-filterable-routes)

```
return [
    ...
    'router' => [
        'router_class' => \CPB\Extensions\Zend\Router\FilterableTreeRouteStack::class,
        'route_error_callback' => [
            'controller' => \Your\Own\Controller::class,
        ],
        'routes' => [
            'sale' => [
                'type'=> 'Segment',
                'filter' => ,
                'options'=> [
                    'route' => '/sale[/:id]',
                    'constraints' => [
                        'id' => '\d+'
                    ],
                    'defaults' => [
                        'controller' => \Your\Own\Controller::class,
                        'id' => 0,
                    ],
                ],
                'may_terminate' => false,
                'child_routes' => [
                    'discover' => [
                        'type' => 'Method',
                        'options' => [
                            'verb' => 'options,head',
                            'defaults' => [
                                'action' => 'list',
                            ],
                        ],
                    ],
                    'read' => [
                        'type' => 'Method',
                        'options' => [
                            'verb' => 'get',
                            'defaults' => [
                                'action' => 'read',
                            ],
                        ],
                    ],
                    'create' => [
                        'type' => 'Method',
                        'options' => [
                            'verb' => 'post',
                            'defaults' => [
                                'action' => 'create',
                            ],
                        ],
                    ],
                ],
            ],
        ]
    ],
    ...
];
```

To configure this zend extension all you need to do is

- set the `'router_class'` to `\CPB\Extensions\Zend\Router\FilterableTreeRouteStack::class`.
- supply an array to `'route_error_callback'`, this array needs at least a controller key-value, the second key you can apply is 'action' this value defaults to `'error'`.
- each route now has an extra config key besides `'type'` and `'options'` you can now also supply `'filter' => `, where `` is a callable type (i.e. `\Closure`, `[class, method]`, `'function'`)

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 78.7% 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 ~106 days

Recently: every ~47 days

Total

16

Last Release

1611d ago

PHP version history (3 changes)1.0.0PHP 7.\*

1.2.6PHP ^7.4

1.2.7PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/85769196fb2af272b88c4029de87af8ef15ac398a2688d9fab1b4376a33c805b?d=identicon)[Chris Kruining](/maintainers/Chris%20Kruining)

---

Top Contributors

[![chris-kruining](https://avatars.githubusercontent.com/u/5786905?v=4)](https://github.com/chris-kruining "chris-kruining (37 commits)")[![renovate-bot](https://avatars.githubusercontent.com/u/25180681?v=4)](https://github.com/renovate-bot "renovate-bot (7 commits)")[![robert-van-de-coolwijk](https://avatars.githubusercontent.com/u/46706756?v=4)](https://github.com/robert-van-de-coolwijk "robert-van-de-coolwijk (3 commits)")

---

Tags

phpRouteStack

### Embed Badge

![Health badge](/badges/chris-kruining-zf3-extensions/health.svg)

```
[![Health](https://phpackages.com/badges/chris-kruining-zf3-extensions/health.svg)](https://phpackages.com/packages/chris-kruining-zf3-extensions)
```

###  Alternatives

[pestphp/pest-plugin-stressless

Stressless plugin for Pest

67792.6k16](/packages/pestphp-pest-plugin-stressless)

PHPackages © 2026

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