PHPackages                             dkplus/base - 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. dkplus/base

AbandonedLibrary

dkplus/base
===========

Utility for other zf2-modules

0.2.0(13y ago)15271MITPHP

Since Feb 20Pushed 13y ago1 watchersCompare

[ Source](https://github.com/UFOMelkor/DkplusBase)[ Packagist](https://packagist.org/packages/dkplus/base)[ Docs](https://github.com/UFOMelkor/DkplusBase)[ RSS](/packages/dkplus-base/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (8)Versions (3)Used By (1)

DkplusBase [![Build Status](https://camo.githubusercontent.com/165e2ae7a8d15ab2eaea83f2e78bc649b400e01a80bb72476dccfc3e725766b4/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f55464f4d656c6b6f722f446b706c7573426173652e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/UFOMelkor/DkplusBase)
===================================================================================================================================================================================================================================================================================================================

[](#dkplusbase-)

Utility for other zf2 modules

ControllerPlugins
-----------------

[](#controllerplugins)

### NotFoundForward

[](#notfoundforward)

When a user looks for an item that is not in your database you might want to show him not the default 404 not found page but a specific page. The NotFoundForward-Plugin might help you in this case because it extends the original Forward-Plugin by 2 points. First it sets a 404 status code, so you don't need to bother about this, since if a 404 status code appears the RouteNotFoundStrategy it will be triggered, the plugin also sets the template of the RouteNotFoundStrategy to the one of your viewModel so your template will be rendered anyway. Furthermore it can help you when need a MatchedRouteName inside your view, e.g. when you use a paginator. You can give the MatchedRouteName as third parameter to the plugin and it will put it into the RouteMatch.

One example:

```
class MyController
{
    // […]

    public function editAction()
    {
        $entity = $this->service->find($this->params()->fromRoute('id'));
        if (!$entity) {
            return $this->notFoundForward('MyController', array('action' => 'index'), 'my-route');
        }

        // […]

    }
}
```

ViewHelpers
-----------

[](#viewhelpers)

### FlashMessenger

[](#flashmessenger)

The FlashMessenger-ViewHelper provides reading-access to the FlashMessenger-Controller-Plugin.

Some examples:

Displaying every messages that has been set within the current request and belongs to the `404-not-found` namespace:

```
foreach ($this->flashMessenger('404-not-found')->getCurrentMessages() as $message) {
    print $this->escapeHtml($message) . '';
}
```

Displaying every messages that belongs to the `error` namespace:

```
foreach ($this->flashMessenger('error')->getMessages() as $message) {
    print $this->escapeHtml($message) . '';
}
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

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

Every ~6 days

Total

2

Last Release

4824d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/332fa213a52cc7607fb381af6d196f51f073f97ebdb113e4db9bde55663018ce?d=identicon)[\[-UFO-\]Melkor](/maintainers/[-UFO-]Melkor)

---

Top Contributors

[![UFOMelkor](https://avatars.githubusercontent.com/u/571106?v=4)](https://github.com/UFOMelkor "UFOMelkor (104 commits)")

---

Tags

zf2

### Embed Badge

![Health badge](/badges/dkplus-base/health.svg)

```
[![Health](https://phpackages.com/badges/dkplus-base/health.svg)](https://phpackages.com/packages/dkplus-base)
```

###  Alternatives

[zf-commons/zfc-user

A generic user registration and authentication module for ZF2. Supports Zend\\Db and Doctrine2.

4851.1M70](/packages/zf-commons-zfc-user)[socalnick/scn-social-auth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

21974.2k3](/packages/socalnick-scn-social-auth)[snapshotpl/zf-snap-geoip

MaxMind GeoIP Module for Zend Framework 2

1512.9k](/packages/snapshotpl-zf-snap-geoip)

PHPackages © 2026

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