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(1mo ago)05.5kMITPHPPHP ^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 1mo ago

READMEChangelog (9)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

50

—

FairBetter than 96% of packages

Maintenance86

Actively maintained with recent releases

Popularity21

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

47d 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://www.gravatar.com/avatar/5a26344976d8ebbaa7896e254939250e43e600e0cbecc4b4762d5dede0bbb13b?d=identicon)[rawaby88](/maintainers/rawaby88)

![](https://www.gravatar.com/avatar/5f9eb56f801a19273b82b4127406ec11399ec12a22ce31d063192cca0d178be8?d=identicon)[piotrek-lifeinmobile](/maintainers/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

[simple-bus/message-bus

Generic classes and interfaces for messages and message buses

3455.7M30](/packages/simple-bus-message-bus)[mpbarlow/laravel-queue-debouncer

A wrapper job for debouncing other queue jobs.

63714.4k1](/packages/mpbarlow-laravel-queue-debouncer)[simple-bus/rabbitmq-bundle-bridge

Use OldSoundRabbitMQBundle with SimpleBus/AsynchronousBundle

39827.3k4](/packages/simple-bus-rabbitmq-bundle-bridge)[simple-bus/asynchronous-bundle

Symfony bundle for using SimpleBus/Asynchronous

241.2M6](/packages/simple-bus-asynchronous-bundle)[convenia/pigeon

3233.0k](/packages/convenia-pigeon)[c-datculescu/amqp-base

Allows easy declaration and management of complex AMQP configurations

1268.1k](/packages/c-datculescu-amqp-base)

PHPackages © 2026

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