ceedcv-maya/shared-messaging-laravel
| Install | |
|---|---|
composer require ceedcv-maya/shared-messaging-laravel |
|
| Latest Version: | v0.23.0 |
| PHP: | ^8.4 |
| Laravel: | 11 · 12 · 13 |
| License: | MIT |
| Last Updated: | Oct 15, 2026 |
| Links: | GitHub · Packagist |
ceedcv-maya/shared-messaging-laravel
RabbitMQ messaging layer for Laravel: typed event publishers (audit, logs, notifications, alerts), reusable consumer base, retry/DLX handling, resilient retry-on-disconnect.
Part of the ceedcv-maya/maya_platform mono-repo. Distributed independently for reuse outside the Maya ecosystem.
Estándar de mensajería
Este paquete es el cliente obligatorio del estándar de mensajería Maya (messaging/ESTANDAR.md
en el monorepo maya_platform): exchanges, colas (config('messaging.queues.*')), claves de
enrutado y permisos salen del catálogo messaging/topology.yaml. El test MessagingStandardTest
falla si la configuración del paquete y el catálogo divergen.
Installation
composer require ceedcv-maya/shared-messaging-laravel
Quick start
use Maya\Messaging\Publishers\AuditPublisher;
AuditPublisher::dispatch([
'app' => 'orders',
'action' => 'create',
'entity_type' => 'order',
'entity_id' => $order->id,
'user_id' => auth()->id(),
]);
Configuration:
RABBITMQ_HOST=rabbitmq.example.org
RABBITMQ_USER=guest
RABBITMQ_PASS=guest
Features
Publishers (Audit, Logs, Notifications, Alerts)
Type-safe message dispatch for cross-app event ingestion. Each publisher validates payload shape and routes to its exchange (maya.audit, maya.logs, etc.).
Resilient retry on RabbitMQ disconnect
When RabbitMQ is unavailable, RetryAmqpPublishJob buffers failed publishes using Laravel's queue system with exponential backoff:
- Queue connection: Configured via
messaging.retry.connection. Defaults to:databasein development (if default queue israbbitmq)- Your app's default queue in production (typically Redis)
- Retry policy: 5 attempts with backoff
[30s, 60s, 120s, 300s, 600s](~17 min total) - Excluded:
LogPublisher(high volume, disk-backed already)
Configure in config/messaging.php:
'retry' => [
'connection' => 'database', // or 'redis', null for app default
],
See RetryAmqpPublishJob.php for implementation.
Consumer base
Reusable ConsumeQueueCommand for building app-specific consumers with the same error handling and ACK policy (see maya_logs, maya_audit, maya_dashboard).
TypeScript / build notes
PSR-4 autoload from src/. Service providers are registered via Laravel package discovery (no manual provider registration needed).
License
MIT — see LICENSE.
Reporting issues
The canonical source lives in Maya-AQSS/maya_platform. File issues there; this read-only split repo is only the published artifact.
Related Packages
A RabbitMQ queue driver for Laravel with explicit topology, publisher confirms,...
Laravel back-to-back broadcasting events. It uses RabbitMQ as the transport.
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v0.23.0 | ^8.4 | ^11.0 || | MIT | |
| v0.22.2 | ^8.4 | ^11.0 || | MIT | |
| v0.22.1 | ^8.4 | ^11.0 || | MIT | |
| v0.22.0 | ^8.4 | ^11.0 || | MIT | |
| v0.21.0 | ^8.4 | ^11.0 || | MIT | |
| v0.20.0 | ^8.4 | ^11.0 || | MIT | |
| v0.19.0 | ^8.4 | ^11.0 || | MIT | |
| v0.18.0 | ^8.4 | ^11.0 || | MIT | |
| v0.17.0 | ^8.4 | ^11.0 || | MIT | |
| v0.16.0 | ^8.4 | ^11.0 || | MIT | |
| v0.15.0 | ^8.4 | ^11.0 || | MIT | |
| v0.14.0 | ^8.4 | ^11.0 || | MIT | |
| v0.13.0 | ^8.4 | ^11.0 || | MIT | |
| v0.12.0 | ^8.4 | ^11.0 || | MIT | |
| v0.11.3 | ^8.4 | ^11.0 || | MIT | |
| v0.11.2 | ^8.4 | ^11.0 || | MIT | |
| v0.11.1 | ^8.4 | ^11.0 || | MIT | |
| v0.11.0 | ^8.4 | ^11.0 || | MIT | |
| v0.10.0 | ^8.4 | ^11.0 || | MIT | |
| v0.9.0 | ^8.4 | ^11.0 || | MIT | |
| v0.8.0 | ^8.4 | ^11.0 || | MIT | |
| v0.7.0 | ^8.4 | ^11.0 || | MIT | |
| v0.6.0 | ^8.4 | ^11.0 || | MIT | |
| v0.5.3 | ^8.4 | ^11.0 || | MIT | |
| v0.5.2 | ^8.4 | ^11.0 || | MIT | |
| v0.5.1 | ^8.4 | ^11.0 || | MIT | |
| v0.5.0 | ^8.4 | ^11.0 || | MIT | |
| v0.4.0 | ^8.4 | ^11.0 || | MIT | |
| v0.3.1 | ^8.4 | ^11.0 || | MIT | |
| v0.3.0 | ^8.4 | ^11.0 || | MIT |
Showing the latest 30 of 32. See every release on Packagist