Skip to content

marko-php/marko-queue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

marko/queue

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

About

[READ-ONLY] Queue interfaces and infrastructure for Marko Framework. Issues and PRs at https://github.com/marko-php/marko

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages