nigelgreenway/demander
最新稳定版本:v1.1.0
Composer 安装命令:
composer require nigelgreenway/demander
包简介
A small, simple and flexible Query Bus.
README 文档
README
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
Via Composer
$ composer require nigelgreenway/demander
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
$ phpunit
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email nigel_greenway@me.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 895
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-02-26