PHPackages                             zpm-packages/cron-manager - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. zpm-packages/cron-manager

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

zpm-packages/cron-manager
=========================

A PHP package for managing cron jobs on Unix-like systems and Windows Task Scheduler

v1.0.0(1mo ago)053↑150%1MITPHPPHP ^8.0

Since May 6Pushed 1mo agoCompare

[ Source](https://github.com/zpm-packages/cron-manager-php)[ Packagist](https://packagist.org/packages/zpm-packages/cron-manager)[ RSS](/packages/zpm-packages-cron-manager/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (1)

PHP Cron Manager
================

[](#php-cron-manager)

A clean and easy-to-use PHP package for managing scheduled jobs on Unix-like systems through `crontab` and on Windows through Task Scheduler. The package allows you to programmatically add, update, remove, and list jobs with support for both standard cron expressions and human-readable schedules.

Features
--------

[](#features)

- ✅ List managed cron jobs with standard cron times and human-readable descriptions
- ✅ Add new cron jobs using standard cron format or human-readable expressions
- ✅ Update existing cron jobs
- ✅ Remove cron jobs
- ✅ Automatic adapter selection for Unix `crontab` or Windows Task Scheduler
- ✅ Shared preset schedule options and command tips for Laravel and Filament integrations
- ✅ Clean, object-oriented API
- ✅ Comprehensive test coverage

Requirements
------------

[](#requirements)

- PHP 8.0 or higher
- On Linux or macOS: the `crontab` command available in PATH
- On Windows: PowerShell Task Scheduler cmdlets available

Installation
------------

[](#installation)

```
composer require zpm-packages/cron-manager
```

Reusable Schedule Presets
-------------------------

[](#reusable-schedule-presets)

The package exposes reusable schedule suggestions and a command tip string that can be shared by UIs and wrappers:

```
use ZPMPackages\CronManager\Support\ScheduleOptions;

$scheduleOptions = ScheduleOptions::selectOptions();
$windowsSafeOptions = ScheduleOptions::selectOptions(true);
$commandTip = ScheduleOptions::commandTip('/schedule.php');
```

Use the full option set on Unix-like systems, or the Windows-safe set when you only want presets that the Task Scheduler adapter can translate directly.

Quick Test Script
-----------------

[](#quick-test-script)

The package includes a small `schedule.php` helper script for smoke testing commands:

```
php /schedule.php "Cron comment"
```

Expected output:

```
Cron comment ran at 2026-05-06 13:45:00

```

Script contents:

```
