marko/queue

Queue interfaces and infrastructure for Marko Framework

Maintainers

Package info

github.com/marko-php/marko-queue

pkg:composer/marko/queue

Statistics

Installs: 4

Dependents: 5

Suggesters: 1

Stars: 0

0.0.1 2026-03-25 17:53 UTC

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