PHPackages                             win-local-inc/message-bus - 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. [Queues &amp; Workers](/categories/queues)
4. /
5. win-local-inc/message-bus

ActiveLibrary[Queues &amp; Workers](/categories/queues)

win-local-inc/message-bus
=========================

A package for message bus.

3.0.5(3mo ago)05.6kMITPHPPHP ^8.1|^8.3

Since Feb 16Pushed 3mo ago4 watchersCompare

[ Source](https://github.com/Win-Local-Inc/message-bus)[ Packagist](https://packagist.org/packages/win-local-inc/message-bus)[ RSS](/packages/win-local-inc-message-bus/feed)WikiDiscussions main Synced today

READMEChangelog (10)Dependencies (10)Versions (14)Used By (0)

Message Bus Package
===================

[](#message-bus-package)

- All honor go to [joblocal/laravel-sqs-sns-subscription-queue](https://github.com/joblocal/laravel-sqs-sns-subscription-queue)

### Installation

[](#installation)

- PHP 8.1 is required
- remove `sqs-sns` from `config/queue.php`, it will be added by provider, or update it with

```
'sqs-sns' => [
        'driver' => 'sqs-sns',
        'key' => env('AWS_SQS_ACCESS_KEY_ID'),
        'secret' => env('AWS_SQS_SECRET_ACCESS_KEY'),
        'queue' => env('AWS_SQS_QUEUE', 'your-queue-url'),
        'region' => env('AWS_SQS_REGION', 'us-east-2'),
        'topic' => env('AWS_SNS_TOPIC'),
        'routes' => [
            env('AWS_SNS_TOPIC') => 'WinLocal\\MessageBus\\Jobs\\SqsGetJob',
        ],
        'version' => 'latest',
        'ua_append' => [
            'L5MOD/'.\Aws\Laravel\AwsServiceProvider::VERSION,
        ],
    ],
```

- add envs :

```
AWS_SQS_HANDLER_PATHS= app paths to handlers separeted by "," resolved by App::path($path)
AWS_SQS_VALIDATOR_PATHS= app paths to validators separeted by "," resolved by App::path($path)
AWS_SQS_ACCESS_KEY_ID=
AWS_SQS_SECRET_ACCESS_KEY=
AWS_SQS_REGION=us-east-2
AWS_SQS_QUEUE=
AWS_SNS_TOPIC=
```

- handlers:

`There are two ways to implement handlers`

1. Standard `Laravel Job`see -&gt; [WinLocal\\MessageBus\\Tests\\Data\\Handlers\\AdvertCreated.php](https://github.com/Win-Local-Inc/message-bus/blob/main/tests/Data/Handlers/AdvertCreated.php)
2. Interface `WinLocal\MessageBus\Contracts\ExecutorInterface`see -&gt; [WinLocal\\MessageBus\\Tests\\Data\\Handlers\\AudienceCreated.php](https://github.com/Win-Local-Inc/message-bus/blob/main/tests/Data/Handlers/AudienceCreated.php)

Attribute [WinLocal\\MessageBus\\Attributes\\HandleSubjects](https://github.com/Win-Local-Inc/message-bus/blob/main/src/Attributes/HandleSubjects.php) needs to be used, so resolver will use it.

- validators:

There is optional validator available, that will be excecuted before handlers. Validator needs to extend [WinLocal\\MessageBus\\Contracts\\AbstractExecutorValidator](https://github.com/Win-Local-Inc/message-bus/blob/main/src/Contracts/AbstractExecutorValidator.php)see -&gt; [WinLocal\\MessageBus\\Tests\\Data\\Validators\\AudienceCreated.php](https://github.com/Win-Local-Inc/message-bus/blob/main/tests/Data/Validators/AudienceCreated.php)

- push notification:

```
WinLocal\MessageBus\Jobs\SnsSendJob::dispatch(\WinLocal\MessageBus\Enums\Subject $subject, array $message);
```

- each service needs to run supervisor

`php artisan queue:work sqs-sns --max-jobs=100 --tries=3 --max-time=3600`

- to run tests on package

`vendor/bin/testbench package:test --configuration=tests/phpunit.xml`

###  Health Score

49

—

FairBetter than 94% of packages

Maintenance82

Actively maintained with recent releases

Popularity20

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 92.6% 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

Every ~103 days

Recently: every ~145 days

Total

12

Last Release

93d ago

Major Versions

1.0.9.x-dev → 2.0.222024-03-07

2.0.24 → 3.02024-07-15

2.0.25 → 3.0.52026-04-02

PHP version history (3 changes)1.0.9PHP ^7.1|^8.0

2.0.22PHP ^8.1

3.0.5PHP ^8.1|^8.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3300771?v=4)[Mood](/maintainers/rawaby88)[@rawaby88](https://github.com/rawaby88)

![](https://avatars.githubusercontent.com/u/10598803?v=4)[Piotr Blaszkowski](/maintainers/piotrek-lifeinmobile)[@piotrek-lifeinmobile](https://github.com/piotrek-lifeinmobile)

---

Top Contributors

[![piotrek-lifeinmobile](https://avatars.githubusercontent.com/u/10598803?v=4)](https://github.com/piotrek-lifeinmobile "piotrek-lifeinmobile (50 commits)")[![bmbBAMBUS](https://avatars.githubusercontent.com/u/25503289?v=4)](https://github.com/bmbBAMBUS "bmbBAMBUS (2 commits)")[![rawaby88](https://avatars.githubusercontent.com/u/3300771?v=4)](https://github.com/rawaby88 "rawaby88 (1 commits)")[![rolnik-lifeinmobile](https://avatars.githubusercontent.com/u/10599601?v=4)](https://github.com/rolnik-lifeinmobile "rolnik-lifeinmobile (1 commits)")

---

Tags

message bus

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/win-local-inc-message-bus/health.svg)

```
[![Health](https://phpackages.com/badges/win-local-inc-message-bus/health.svg)](https://phpackages.com/packages/win-local-inc-message-bus)
```

###  Alternatives

[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135224.7k7](/packages/statamic-rad-pack-runway)[api-platform/laravel

API Platform support for Laravel

58171.5k14](/packages/api-platform-laravel)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21318.6k3](/packages/ecotone-laravel)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3416.9k](/packages/duncanmcclean-statamic-cargo)

PHPackages © 2026

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