PHPackages                             tienvx/pact-messenger-bundle - 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. tienvx/pact-messenger-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

tienvx/pact-messenger-bundle
============================

Pact Messenger Bundle

v1.0.0(2y ago)13MITPHPPHP ^8.1

Since Mar 28Pushed 2y ago1 watchersCompare

[ Source](https://github.com/tienvx/pact-messenger-bundle)[ Packagist](https://packagist.org/packages/tienvx/pact-messenger-bundle)[ RSS](/packages/tienvx-pact-messenger-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (7)Versions (2)Used By (0)

Pact Messenger Bundle [![Build Status](https://github.com/tienvx/pact-messenger-bundle/workflows/main/badge.svg)](https://github.com/tienvx/pact-messenger-bundle/actions) [![Coverage Status](https://camo.githubusercontent.com/d36ec9d28c8701aabb6e03d97610d27d6da666735ae7df51ae19f89551a5c3a6/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f7469656e76782f706163742d6d657373656e6765722d62756e646c652f62616467652e7376673f6272616e63683d6d61696e26736572766963653d676974687562)](https://coveralls.io/github/tienvx/pact-messenger-bundle?branch=main) [![Version](https://camo.githubusercontent.com/e181fae92af6b49f96581ff554b23e036eff85012324367b61ab1437c0776270/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7469656e76782f706163742d6d657373656e6765722d62756e646c652e7376673f7374796c653d666c6174)](https://packagist.org/packages/tienvx/pact-messenger-bundle) [![PHP Version](https://camo.githubusercontent.com/d0940d9652b353227d92a43a0aa221f2ee3a317a7e29a2cb1af6013a18a9d922/687474703a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e312e302b2d6666363962342e737667)](https://packagist.org/packages/tienvx/pact-messenger-bundle)
===================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#pact-messenger-bundle----)

This Symfony Bundle allow collecting dispatched message using [Symfony Messenger](https://github.com/symfony/messenger).

Installation
------------

[](#installation)

```
composer require tienvx/pact-messenger-bundle
```

Documentation
-------------

[](#documentation)

```
namespace App\MessageDispatcher;

use App\Message\UserCreated;
use Tienvx\Bundle\PactMessengerBundle\Service\EnvelopeCollectorInterface;
use Tienvx\Bundle\PactProviderBundle\Attribute\AsMessageDispatcher;
use Tienvx\Bundle\PactProviderBundle\Model\Message;
use Tienvx\Bundle\PactProviderBundle\MessageDispatcher\DispatcherInterface;

#[AsMessageDispatcher(description: 'User created message')]
class UserDispatcher implements DispatcherInterface
{
    public function __construct(private EnvelopeCollectorInterface $collector)
    {
    }

    public function dispatch(): ?Message
    {
        $envelope = $this->collector->getSingle(UserCreated::class);
        if (!$envelope) {
            return null;
        }
        $message = $envelope->getMessage();
        if (!$message instanceof UserCreated) {
            return null;
        }

        return new Message(
            \json_encode([
                'class' => UserCreated::class,
                'id' => $message->userId,
            ]),
            'application/json',
            json_encode(['contentType' => 'application/json'])
        );
    }
}
```

License
-------

[](#license)

[MIT](https://github.com/tienvx/pact-messenger-bundle/blob/main/LICENSE)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

780d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/176d0199776bb6cdb210e2c5339ec79637c613e0617377378807bfe051eabb8e?d=identicon)[tien.xuan.vo](/maintainers/tien.xuan.vo)

---

Top Contributors

[![tienvx](https://avatars.githubusercontent.com/u/3327643?v=4)](https://github.com/tienvx "tienvx (26 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tienvx-pact-messenger-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/tienvx-pact-messenger-bundle/health.svg)](https://phpackages.com/packages/tienvx-pact-messenger-bundle)
```

###  Alternatives

[codefog/contao-haste

haste extension for Contao Open Source CMS

42650.8k139](/packages/codefog-contao-haste)[spomky-labs/pwa-bundle

Progressive Web App Manifest Generator Bundle for Symfony.

6144.4k1](/packages/spomky-labs-pwa-bundle)[symfony/ux-cropperjs

Cropper.js integration for Symfony

19280.3k3](/packages/symfony-ux-cropperjs)[netgen/content-browser

Netgen Content Browser is a Symfony bundle that provides an interface which selects items from any kind of backend and returns the IDs of selected items back to the calling code.

14112.1k8](/packages/netgen-content-browser)[pentiminax/ux-datatables

DataTables.net integration for Symfony

605.6k](/packages/pentiminax-ux-datatables)

PHPackages © 2026

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