ipl/scheduler

Icinga PHP Library - Tasks scheduler

v0.1.2 2023-08-30 14:14 UTC

README

PHP Support Build Status

Framework-independent scheduler that executes tasks at regular intervals or once at specific times in an event loop. The tasks are pure PHP code and the frequency is defined via cron expressions. Yields events for which you can install listeners:

  • when an operation of a task is scheduled,
  • upon running an operation of a task,
  • when an operation of a task is done or failed,
  • and when a task is canceled or expired.

Scheduled or running tasks can be removed or canceled at any time.

Installation

The recommended way to install this library is via Composer:

composer require ipl/scheduler