Download the PHP package win-local-inc/message-bus without Composer
On this page you can find all versions of the php package win-local-inc/message-bus. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download win-local-inc/message-bus
More information about win-local-inc/message-bus
Files in win-local-inc/message-bus
Package message-bus
Short Description A package for message bus.
License MIT
Informations about the package message-bus
Message Bus Package
- All honor go to joblocal/laravel-sqs-sns-subscription-queue
Installation
-
PHP 8.1 is required
-
remove
sqs-sns
fromconfig/queue.php
, it will be added by provider, or update it with -
add envs :
- handlers:
There are two ways to implement handlers
- Standard
Laravel Job
see -> WinLocal\MessageBus\Tests\Data\Handlers\AdvertCreated.php - Interface
WinLocal\MessageBus\Contracts\ExecutorInterface
see -> WinLocal\MessageBus\Tests\Data\Handlers\AudienceCreated.php
Attribute WinLocal\MessageBus\Attributes\HandleSubjects 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 see -> WinLocal\MessageBus\Tests\Data\Validators\AudienceCreated.php
-
push notification:
- 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
All versions of message-bus with dependencies
aws/aws-sdk-php-laravel Version ^3.6
laravel/framework Version ^v8.0.0|^v9.0.0|^v10.0.0|^v11.0.0|^v12.0.0