marko / queue
Queue interfaces and infrastructure for Marko Framework
0.0.1
2026-03-25 17:53 UTC
Requires
- php: ^8.5
- marko/core: 0.0.1
Requires (Dev)
- marko/testing: 0.0.1
- pestphp/pest: ^4.0
This package is auto-updated.
Last update: 2026-03-25 21:07:23 UTC
README
Queue interfaces and worker infrastructure -- defines how jobs are dispatched and processed, not which backend stores them.
Installation
composer require marko/queue
Note: You also need a driver package. See marko/queue-sync, marko/queue-database, or marko/queue-rabbitmq.
Quick Example
use Marko\Queue\Job; use Marko\Queue\QueueInterface; class SendWelcomeEmail extends Job { public function __construct( private readonly string $email, ) {} public function handle(): void { // Send the email... } } // Dispatch via QueueInterface $queue->push(new SendWelcomeEmail('user@example.com'));
Documentation
Full usage, API reference, and examples: marko/queue