PHPackages                             nigelgreenway/demander - 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. nigelgreenway/demander

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

nigelgreenway/demander
======================

A small, simple and flexible Query Bus.

v1.1.0(10y ago)4895[1 issues](https://github.com/NigelGreenway/Demander/issues)1MITPHPPHP &gt;=5.5

Since Feb 26Pushed 10y ago1 watchersCompare

[ Source](https://github.com/NigelGreenway/Demander)[ Packagist](https://packagist.org/packages/nigelgreenway/demander)[ RSS](/packages/nigelgreenway-demander/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (2)Versions (5)Used By (1)

demander
========

[](#demander)

[![Latest Version](https://camo.githubusercontent.com/e6f3150e8bebc2ab228425d4237fcbc472bd136e1e36a98b9c75975b5a74a039/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f4e6967656c477265656e7761792f44656d616e6465722e7376673f7374796c653d666c61742d737175617265)](https://github.com/NigelGreenway/Demander/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/629515b9c4e3e360392a0ef03a71b4a7789c52dcc270eaba43f35c13ceac8958/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f4e6967656c477265656e7761792f44656d616e6465722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/NigelGreenway/Demander)

This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors.

Install
-------

[](#install)

Via Composer

```
$ composer require nigelgreenway/demander
```

Usage
-----

[](#usage)

Below is a very basic example on how to use the package. More docs will be released when version 1.0 is released in the next week or two.

```
$mapping = [
    'GetActiveEmployeesQuery' => 'GetActiveEmployeesQueryHandler',
];

$mediator = new Demander\Mediator\InMemoryMediator($mapping);

$activeEmployees = $mediator->request(new GetEmployeesByStatusQuery('active'));

foreach($activeEmployees as $activeEmployee) {
    echo $activeEmployee->fullName;
}
```

Testing
-------

[](#testing)

```
$ phpunit
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email [nigel\_greenway@me.com](mailto:nigel_greenway@me.com) instead of using the issue tracker.

Credits
-------

[](#credits)

- [Nigel Greenway](https://github.com/NigelGreenway)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

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

Total

3

Last Release

3664d ago

Major Versions

v0.0.1a → v1.0.02016-01-13

PHP version history (2 changes)v0.0.1aPHP &gt;=5.4

v1.0.0PHP &gt;=5.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/d4b8f102de0c4c8eff3bfc941575e8c6877412d901725e85cd3eae9bda149166?d=identicon)[NigelGreenway](/maintainers/NigelGreenway)

---

Top Contributors

[![NigelGreenway](https://avatars.githubusercontent.com/u/2984008?v=4)](https://github.com/NigelGreenway "NigelGreenway (2 commits)")

---

Tags

queryviewcommandcommand busquery-busmediatorview-model

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/nigelgreenway-demander/health.svg)

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

###  Alternatives

[eftec/bladeone

The standalone version Blade Template Engine from Laravel in a single php file

8379.7M105](/packages/eftec-bladeone)[laracasts/presenter

Simple view presenters

8843.6M48](/packages/laracasts-presenter)[jenssegers/blade

The standalone version of Laravel's Blade templating engine for use outside of Laravel.

8791.3M114](/packages/jenssegers-blade)[backpack/generators

Generate files for laravel projects

3162.8M18](/packages/backpack-generators)[laminas/laminas-view

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

7528.4M269](/packages/laminas-laminas-view)[friendsofcake/cakephp-csvview

A CSV View class for CakePHP

1782.6M5](/packages/friendsofcake-cakephp-csvview)

PHPackages © 2026

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