Search by

marko / scheduler

markshust

Task scheduling for Marko Framework

Package info

github.com/marko-php/marko-scheduler

Type:marko-module

pkg:composer/marko/scheduler

Statistics

Installs: 28

Dependents: 0

Suggesters: 0

Stars: 0

0.11.0 2026-10-06 03:37 UTC

README

Fluent task scheduler with cron expression support — define recurring tasks in PHP and run them with a single cron entry.

Installation

composer require marko/scheduler

Quick Example

use Marko\Scheduler\Schedule;

return [
    'boot' => function (Schedule $schedule): void {
        $schedule->call(function () {
            // Clean up temp files...
        })->daily()->description('Clean temp files');

        $schedule->call(function () {
            // Import a feed that can outlast its interval...
        })->everyMinute()->description('Import feed')->withoutOverlapping();
    },
];

Run due tasks from a single cron entry with marko schedule:run (exits 1 if any task fails), or in the foreground with marko schedule:work.

Documentation

Full usage, API reference, and examples: marko/scheduler