PHPackages                             yiivgeny/yii-phpdoc-crontab - 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. [CLI &amp; Console](/categories/cli)
4. /
5. yiivgeny/yii-phpdoc-crontab

AbandonedArchivedYii-extension[CLI &amp; Console](/categories/cli)

yiivgeny/yii-phpdoc-crontab
===========================

Simple and convenient installing console commands as cron jobs for Yii framework

0.1(12y ago)301.3k12[1 issues](https://github.com/Yiivgeny/Yii-PHPDocCrontab/issues)BSD-3-ClausePHP

Since Mar 7Pushed 9y ago5 watchersCompare

[ Source](https://github.com/Yiivgeny/Yii-PHPDocCrontab)[ Packagist](https://packagist.org/packages/yiivgeny/yii-phpdoc-crontab)[ Docs](http://www.yiiframework.com/extension/phpdoc-crontab)[ RSS](/packages/yiivgeny-yii-phpdoc-crontab/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

\#Yii PHPDocCrontab extension Simple and convenient installing console commands as cron jobs.

- One control point to run all commands
- Crossplatform job installing
- Store schedule of launches with application source
- Grouping jobs (example: segmentation by server)

\##Requirements Yii Framework 1.1.6 or above

\##Usage Installing action 'Example1' of command 'Test' to run every 10 minutes. Just add doc-comment for console action.

```
class TestCommand extends CConsoleCommand{
    /**
     * @cron 10 * * * *
     */
    public function actionExample1(){}
}
```

\##Installation

- **Step 1:** Put directory PHPDocCrontab (or only PHPDocCrontab.php) into your framework extensions directory.
- **Step 2:** Add PHPDocCrontab.php as new console command on framework config:

```
'commandMap' => array(
    'cron' => 'ext.PHPDocCrontab.PHPDocCrontab'
)
```

- **Step 3:** Add task to system scheduler (cron on unix, task scheduler on windows) to run every minute:

```
* * * * * /path/to/yii/application/protected/yiic cron
```

\##Resources

- [More examples on GitHub](https://github.com/Yiivgeny/Yii-PHPDocCrontab/blob/master/examples/ExampleRuCommand.php)
- [Extension page on YiiFramework Site](http://www.yiiframework.com/extension/phpdoc-crontab)
- [Discussion on YiiFramework Forum](http://www.yiiframework.com/forum/index.php/topic/28948-installing-cron-jobs-by-phpdoc-comment-on-consolecommand-files/)
- [Discussion on Russian YiiFramework Forum](http://www.yiiframework.ru/forum/viewtopic.php?f=9&t=5274)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity53

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

4455d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/358e19406045905037ec1cd771e954688292baa75be80876d781fe3f9231fe67?d=identicon)[Yiivgeny](/maintainers/Yiivgeny)

---

Top Contributors

[![Yiivgeny](https://avatars.githubusercontent.com/u/1321010?v=4)](https://github.com/Yiivgeny "Yiivgeny (12 commits)")

---

Tags

cronscheduleyiicrontab

### Embed Badge

![Health badge](/badges/yiivgeny-yii-phpdoc-crontab/health.svg)

```
[![Health](https://phpackages.com/badges/yiivgeny-yii-phpdoc-crontab/health.svg)](https://phpackages.com/packages/yiivgeny-yii-phpdoc-crontab)
```

###  Alternatives

[zenstruck/schedule-bundle

Schedule Cron jobs (commands/callbacks/bash scripts) within your Symfony application.

4041.0M2](/packages/zenstruck-schedule-bundle)[shapecode/cron-bundle

This bundle provides scheduled execution of Symfony commands

59493.0k2](/packages/shapecode-cron-bundle)[fedemotta/yii2-cronjob

Yii2 extension to help in the creation of automated console scripts

2233.5k](/packages/fedemotta-yii2-cronjob)[mult1mate/cron-manager

Flexible cron tasks manager for MVC-type applications

40338.5k3](/packages/mult1mate-cron-manager)[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)
