PHPackages                             kfosoft/php-crontab-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. kfosoft/php-crontab-manager

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

kfosoft/php-crontab-manager
===========================

PHP Crontab Manager

v1.0(10y ago)12391PHPPHP &gt;=5.4.0

Since Aug 12Pushed 10y ago1 watchersCompare

[ Source](https://github.com/kfosoft/php-crontab-manager)[ Packagist](https://packagist.org/packages/kfosoft/php-crontab-manager)[ RSS](/packages/kfosoft-php-crontab-manager/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

PHP Crontab Manager
===================

[](#php-crontab-manager)

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

[](#installation)

Installation with Composer

Add in composer.json

```
    "require": {
        ...
        "kfosoft/php-crontab-manager":"1.0"
    }

```

Well done!

Methods
-------

[](#methods)

##### onMinute($minute) : Set minute or minutes.

[](#onminuteminute--set-minute-or-minutes)

##### onHour($hour) : Set hour or hours.

[](#onhourhour--set-hour-or-hours)

##### onDayOfMonth($dayOfMonth) : Set day of month or days of month.

[](#ondayofmonthdayofmonth--set-day-of-month-or-days-of-month)

##### onMonth($month) : Set month or months.

[](#onmonthmonth--set-month-or-months)

##### onDayOfWeek($dayOfWeek) : Set day of week or days of week.

[](#ondayofweekdayofweek--set-day-of-week-or-days-of-week)

##### on($timeCode) : Set entire time code with one function. This has to be a complete entry. See [http://en.wikipedia.org/wiki/Cron#crontab\_syntax](http://en.wikipedia.org/wiki/Cron#crontab_syntax)

[](#ontimecode--set-entire-time-code-with-one-function-this-has-to-be-a-complete-entry-see-httpenwikipediaorgwikicroncrontab_syntax)

##### doJob($job) : Add job to the jobs array. Each time segment should be set before calling this method. The job should include the absolute path to the commands being used.

[](#dojobjob--add-job-to-the-jobs-array-each-time-segment-should-be-set-before-calling-this-method-the-job-should-include-the-absolute-path-to-the-commands-being-used)

##### setCrontabPath($path) : location of the crontab executable. Default /usr/bin/crontab.

[](#setcrontabpathpath--location-of-the-crontab-executable-default-usrbincrontab)

##### setDestinationPath($path) : location to save the crontab file.

[](#setdestinationpathpath--location-to-save-the-crontab-file)

##### activate($includeOldJobs = true) : Save the jobs to disk, remove existing cron.

[](#activateincludeoldjobs--true--save-the-jobs-to-disk-remove-existing-cron)

##### clearJobs() : lear array jobs.

[](#clearjobs--lear-array-jobs)

##### clearJobsFile() : Clear jobs file.

[](#clearjobsfile--clear-jobs-file)

##### listJobs() : List current cron jobs.

[](#listjobs--list-current-cron-jobs)

Example
-------

[](#example)

```
$crontab = new /kfosoft/helpers/CronTab();
$crontab->onMinute(10)->onHour(0)->doJob('echo "job is work." >> /home/user/test')->activate();

```

Enjoy, guys!

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3930d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3544388a2defce630d5b16fe9c38c91057278147939e8fac9a419386c3984a98?d=identicon)[kfosoft](/maintainers/kfosoft)

---

Top Contributors

[![nemed](https://avatars.githubusercontent.com/u/5604304?v=4)](https://github.com/nemed "nemed (2 commits)")

---

Tags

phpphp helperphp crontabphp croncron helpercrontab helperphp crontab helper

### Embed Badge

![Health badge](/badges/kfosoft-php-crontab-manager/health.svg)

```
[![Health](https://phpackages.com/badges/kfosoft-php-crontab-manager/health.svg)](https://phpackages.com/packages/kfosoft-php-crontab-manager)
```

###  Alternatives

[imanghafoori/laravel-anypass

A minimal yet powerful package to help you in development.

21421.6k](/packages/imanghafoori-laravel-anypass)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
