marko / scheduler
Task scheduling for Marko Framework
0.11.0
2026-10-06 03:37 UTC
Requires
- php: ^8.5
- marko/cli: 0.11.0
- marko/clock: 0.11.0
- marko/core: 0.11.0
Requires (Dev)
- marko/testing: 0.11.0
- pestphp/pest: ^4.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
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