psamatt/service-bus-lite 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

psamatt/service-bus-lite

Composer 安装命令:

composer require psamatt/service-bus-lite

包简介

Service Bus for PHP

README 文档

README

Service Bus Lite is a PHP implementation of the popular NServiceBus in C#, you can find more information about a Service Bus on Wikipedia. This has been written with the influence of the popular ShortBus library in C#.

## Introduction

The idea of a service bus in a MVC Architecture is essentially a messaging queue that sits between the application logic (Controller) and your business logic (Domain). Upon firing requests at the message bus in the form of a Query or a Command, a matching Handler will be found and executed.

Your Handler will do your logic dependant on the type of request:

  • Query - A query is your read layer and will request information such as fetching all users who are from a specific country. This should be a layer that talks to your persistance or cache layer and should NEVER do write actions.

  • Command - A command is your write layer and will send information to your application such as creating records in your persistance layer, writing to logs etc.

How do I get started?

Using Composer, add the following into your composer.json

{
    "require": {
        psamatt/service-bus-lite": "dev-master"
    }
}

Now tell composer to download the bundle by running the following command:

$ php composer.phar update psamatt/service-bus-lite

Examples

To find how to use this library, check the examples.

Integrated into...

This library has been integrated into the following PHP Frameworks:

If you have integrated this into an unlisted Framework, then get in touch.

统计信息

  • 总下载量: 4.48k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 12
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 12
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-01-15