PHPackages                             stagem/zfc-action - 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. stagem/zfc-action

ActiveZf-module

stagem/zfc-action
=================

ZF-Expressive auto-wiring Action

0.0.1(8y ago)3182MITPHPPHP &gt;=7.0

Since Apr 18Pushed 7y ago3 watchersCompare

[ Source](https://github.com/stagemteam/zfc-action)[ Packagist](https://packagist.org/packages/stagem/zfc-action)[ RSS](/packages/stagem-zfc-action/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)DependenciesVersions (2)Used By (0)

ZF-Expressive auto-wiring Action
================================

[](#zf-expressive-auto-wiring-action)

Module allow use one `routes` pattern for all actions without re-declaration routes configuration. Either action can be accessed with next unified path */module/action*. It's like to standard MVC pattern with it */controller/action*.

Such as Expressive application doesn't about any *controller* we use for this *module* keyword.

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

[](#installation)

Add to your `composer.json` repository declaration and run `composer update`

```
// composer.json

"require": {
	"stagem/zfc-action": "dev-master"
},
"repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/stagemteam/zfc-action"
    }
]

```

After that enable module in `config/config.php`

```
$aggregator = new ConfigAggregator([
    //...
    Stagem\Server\ConfigProvider::class,
    //...
], $cacheConfig['config_cache_path']);

```

and register auto-wiring route in `config/routes.php`

```
$app->injectRoutesFromConfig((new Stagem\ZfcAction\ConfigProvider())());

```

> Notice. `slim/router` has problem with wildcard routes. That is why you should add to your `composer.json`

```
{
    "require": {
        "acelaya/slim-2-router": "^2.7"
    },
    "repositories": [
        {
          "type": "vcs",
          "url": "https://github.com/popovserhii/slim-2-router"
        }
    ]
}
```

Usage
-----

[](#usage)

### Standalone Usage

[](#standalone-usage)

Map your module name with namespace in `src/Acme/Foo/config/module.config.php`

```
namespace Acme\Foo;

return [
    //...
    'middleware' => [
        'foo' => __NAMESPACE__
    ],
]

```

### Advanced Usage

[](#advanced-usage)

Advanced usage allow use standardized and flexible approach with module naming on all application level.

> Before continue reading you should install `stagem/zfc-entity`

Custom implementation
---------------------

[](#custom-implementation)

If you want use in third party packages you have to prepare CurrentHelper for usage. You should call next code before *controller/action* dispatching:

```
$this->currentHelper->setDefaultContext($actionOtControlletClassName);
$this->currentHelper->setResource($request->getAttribute('controller', self::DEFAULT_RESOURCE));
$this->currentHelper->setAction($request->getAttribute('action', self::DEFAULT_ACTION));
$this->currentHelper->setRequest($request);
$this->currentHelper->setRoute($route->getMatchedRoute());
$this->currentHelper->setMatchedParams($route->getMatchedParams());
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.5% 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

2947d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7dbdbd3abed25e11e97a69bc611daa3fe33ad5d1805f2fb32d491c888c4dfb51?d=identicon)[Serhii Popov](/maintainers/Serhii%20Popov)

---

Top Contributors

[![popovserhii](https://avatars.githubusercontent.com/u/1991183?v=4)](https://github.com/popovserhii "popovserhii (43 commits)")[![vladgemtyp](https://avatars.githubusercontent.com/u/12100554?v=4)](https://github.com/vladgemtyp "vladgemtyp (2 commits)")[![DayOut](https://avatars.githubusercontent.com/u/7451037?v=4)](https://github.com/DayOut "DayOut (1 commits)")

---

Tags

zf2auto wiringactionzf-expressive

### Embed Badge

![Health badge](/badges/stagem-zfc-action/health.svg)

```
[![Health](https://phpackages.com/badges/stagem-zfc-action/health.svg)](https://phpackages.com/packages/stagem-zfc-action)
```

###  Alternatives

[org_heigl/hybridauth

Lightweight Authentication Module for Zend-Framework 2 using the hybridauth-library

211.9k](/packages/org-heigl-hybridauth)

PHPackages © 2026

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