PHPackages                             rossmann-it/yii2-cron - 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. rossmann-it/yii2-cron

ActiveYii2-module

rossmann-it/yii2-cron
=====================

Flexible cron tasks manager for the Yii2 Framework

1.1.7(8y ago)321.4k↓31.3%53MITPHPPHP &gt;=5.6.0

Since Jan 6Pushed 8y ago4 watchersCompare

[ Source](https://github.com/Rossmann-IT/yii2-cron)[ Packagist](https://packagist.org/packages/rossmann-it/yii2-cron)[ Docs](https://github.com/Rossmann-IT/yii2-cron)[ RSS](/packages/rossmann-it-yii2-cron/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (4)Versions (16)Used By (3)

PHP Cron tasks manager
======================

[](#php-cron-tasks-manager)

This is a flexible tasks manager designed for MVC-type applications. It's used instead of standard linux *crontab* command.

The purpose of this tool is to provide an easy way to manipulate repetitive tasks.

[Live Demo of original project by multimate](https://cron.multimate.ru)[![Code Climate](https://camo.githubusercontent.com/89f0dc3777173fceed69cc4736cf8aa1b7e6bc9c266d568ae231b081c39d73df/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f526f73736d616e6e2d49542f796969322d63726f6e2f6261646765732f6770612e737667)](https://codeclimate.com/github/Rossmann-IT/yii2-cron)[![Test Coverage](https://camo.githubusercontent.com/c0669b4e3dd2046ae9b5f29a88b17823f9b90826c42879d7babc9851204e9072/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f526f73736d616e6e2d49542f796969322d63726f6e2f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/Rossmann-IT/yii2-cron/coverage)[![License](https://camo.githubusercontent.com/e498eead712d82d9ee1af0a4850acd2e46ea48c48fb9ce5a3d2ab64f28f95b34/687474703a2f2f696d672e736869656c64732e696f2f3a6c6963656e73652d6d69742d626c75652e737667)](http://doge.mit-license.org)

How this works
--------------

[](#how-this-works)

Replace all tasks in crontab file with one which will invoke method `TaskRunner::checkAndRunTasks()`.

Import tasks from current crontab file or add them manually. Active tasks will run one by one if current time matches with the task's time expression. Output of tasks can be handled. For each execution will be assigned status:

- **Success** if method returned `true`;
- **Error** if method returned `false` or an exception was caught;
- **Started** if task is running or wasn't ended properly.

### Features

[](#features)

- Works with any storage engines
- Flexible implementation with interfaces
- Disable, enable and run tasks through tool interface
- Handle tasks output however you want
- Time expression helper shows next run dates
- Monitor runs results
- Export and import tasks from crontab
- Add needed method for new task from dropdown

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

[](#installation)

Install package via Composer

```
composer require rossmann-it/yii2-cron

```

### Requirements

[](#requirements)

- PHP 5.4 or above
- [mtdowling/cron-expression](https://github.com/mtdowling/cron-expression)

### Configure

[](#configure)

- Create tables if you want to store data in database (use Yii migration)
- Implement `TaskInterface` and `TaskRunInterface` or use predefined classes from the Example folder
- Copy and modify controller and views. Or create your own.
- Import tasks through interface or add them manually
- Add new line into crontab file that will invoke `TaskRunner::checkAndRunTasks()`
- Disable tasks that will be invoked through the manager
- Make sure that manager is not publicly available

Screenshots
-----------

[](#screenshots)

[![Tasks list](https://camo.githubusercontent.com/26a76d7cd2f30f7c47ba12bf0949f0b73f415a0221401c1290ccff6aa58794ef/68747470733a2f2f63726f6e2e6d756c74696d6174652e72752f696d672f53656c656374696f6e5f3030362e706e67)](https://camo.githubusercontent.com/26a76d7cd2f30f7c47ba12bf0949f0b73f415a0221401c1290ccff6aa58794ef/68747470733a2f2f63726f6e2e6d756c74696d6174652e72752f696d672f53656c656374696f6e5f3030362e706e67)[![Report](https://camo.githubusercontent.com/3e1d0618d8267d3f03ce65c991d0a3977264ead152e2a2d8aa1cfc593dc12e16/68747470733a2f2f63726f6e2e6d756c74696d6174652e72752f696d672f53656c656374696f6e5f3030382e706e67)](https://camo.githubusercontent.com/3e1d0618d8267d3f03ce65c991d0a3977264ead152e2a2d8aa1cfc593dc12e16/68747470733a2f2f63726f6e2e6d756c74696d6174652e72752f696d672f53656c656374696f6e5f3030382e706e67)[![Logs](https://camo.githubusercontent.com/88b42df3c832556d903bab165f3a6b2190f616dbc31c632f71a2e5f4b9551984/68747470733a2f2f63726f6e2e6d756c74696d6174652e72752f696d672f53656c656374696f6e5f3030372e706e67)](https://camo.githubusercontent.com/88b42df3c832556d903bab165f3a6b2190f616dbc31c632f71a2e5f4b9551984/68747470733a2f2f63726f6e2e6d756c74696d6174652e72752f696d672f53656c656374696f6e5f3030372e706e67)[![Import and export](https://camo.githubusercontent.com/b71da201c6bf47a492e4eb999ac97e02362de0e22235a1f9be51bb02f702e2c3/68747470733a2f2f63726f6e2e6d756c74696d6174652e72752f696d672f53656c656374696f6e5f3030332e706e67)](https://camo.githubusercontent.com/b71da201c6bf47a492e4eb999ac97e02362de0e22235a1f9be51bb02f702e2c3/68747470733a2f2f63726f6e2e6d756c74696d6174652e72752f696d672f53656c656374696f6e5f3030332e706e67)

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 54.7% 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

Every ~66 days

Recently: every ~136 days

Total

14

Last Release

2925d ago

Major Versions

v0.2.0 → v1.0.02016-02-07

PHP version history (3 changes)v0.1.0PHP &gt;=5.4.0

v0.2.0PHP &gt;=5.3.2

1.0.1PHP &gt;=5.6.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/3e6bed2c1b7b703692d03a1bb0a34cd82c0c00f367a80357567f6abe95e4a5c0?d=identicon)[xrymz](/maintainers/xrymz)

---

Top Contributors

[![MUlt1mate](https://avatars.githubusercontent.com/u/1782485?v=4)](https://github.com/MUlt1mate "MUlt1mate (47 commits)")[![RSM-RGRE](https://avatars.githubusercontent.com/u/267261891?v=4)](https://github.com/RSM-RGRE "RSM-RGRE (34 commits)")[![ihipop](https://avatars.githubusercontent.com/u/423077?v=4)](https://github.com/ihipop "ihipop (2 commits)")[![sburschewski](https://avatars.githubusercontent.com/u/19836479?v=4)](https://github.com/sburschewski "sburschewski (2 commits)")[![RSM-NTH](https://avatars.githubusercontent.com/u/2527194?v=4)](https://github.com/RSM-NTH "RSM-NTH (1 commits)")

---

Tags

cronscheduleyii2crontabyii 2tasks manager

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rossmann-it-yii2-cron/health.svg)

```
[![Health](https://phpackages.com/badges/rossmann-it-yii2-cron/health.svg)](https://phpackages.com/packages/rossmann-it-yii2-cron)
```

###  Alternatives

[mult1mate/cron-manager

Flexible cron tasks manager for MVC-type applications

40338.5k3](/packages/mult1mate-cron-manager)[fedemotta/yii2-cronjob

Yii2 extension to help in the creation of automated console scripts

2233.5k](/packages/fedemotta-yii2-cronjob)[orisai/scheduler

Cron job scheduler - with locks, parallelism and more

4037.1k4](/packages/orisai-scheduler)

PHPackages © 2026

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