Back to Labs

Runner

A streamlined background job runner and task scheduler for modern PHP applications.

composer require obelaw/runner
GitHub

Overview

Runner simplifies the execution of asynchronous tasks and scheduled jobs. It provides a clean API for defining workflows and monitoring their execution status.

Key Features

  • Simple job definition syntax
  • Robust failure handling and retries
  • Real-time progress tracking
  • Dashboard for monitoring queues

Basic Usage

// Dispatch a job
Runner::dispatch(new ProcessPodcast($podcast));

// Schedule a recurring task
Runner::schedule(function () {
    // Task logic
})->daily();