PHPackages                             mf4php/mf4php - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. mf4php/mf4php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mf4php/mf4php
=============

This is a facade for messaging systems.

2.0.0(8y ago)525.1k2MITPHPPHP &gt;=7.1

Since Dec 15Pushed 8y ago1 watchersCompare

[ Source](https://github.com/szjani/mf4php)[ Packagist](https://packagist.org/packages/mf4php/mf4php)[ RSS](/packages/mf4php-mf4php/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (2)Versions (9)Used By (2)

mf4php
======

[](#mf4php)

This is a messaging facade library. It wraps and hides messaging (event) tools thus you can whenever switch to another one.

Features
--------

[](#features)

There is one implementation shipped with this package, the MemoryMessageDispatcher. It is useful for synchron communications. There is one asynchronous implementation: [mf4php/mf4php-beanstalk](https://github.com/szjani/mf4php-beanstalk)

Feel free to implement a binding for your preferred event library.

History
-------

[](#history)

### 1.1

[](#11)

There is a message dispatcher (abstract) implementation: TransactedMessageDispatcher. It can be used with an ObservableTransactionManager coming from [trf4php](https://github.com/szjani/trf4php). Sending messages inside a transaction will be delayed until the transaction is committed. The benefit of this feature is that if a message sending causes error then transaction will be rolled back (buffered messages will be deleted). If the commit is successful, then buffered messages will be delivered and inserted/updated records can be reached in message handlers even if the messages were sent before the commit.

```
