Download the PHP package psamatt/service-bus-lite without Composer
On this page you can find all versions of the php package psamatt/service-bus-lite. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download psamatt/service-bus-lite
More information about psamatt/service-bus-lite
Files in psamatt/service-bus-lite
Package service-bus-lite
Short Description Service Bus for PHP
License MIT
Homepage http://github.com/psamatt/ServiceBusLite
Informations about the package service-bus-lite
Service Bus Lite
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
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:
- Symfony2 using ServiceBusLiteBundle
If you have integrated this into an unlisted Framework, then get in touch.