PHPackages                             mwstake/mediawiki-component-wikicron - 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. mwstake/mediawiki-component-wikicron

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

mwstake/mediawiki-component-wikicron
====================================

Cron manager for MediaWiki

3.0.1(2mo ago)14.8k—4.5%GPL-3.0-onlyPHPCI passing

Since Jan 15Pushed 2mo ago3 watchersCompare

[ Source](https://github.com/hallowelt/mwstake-mediawiki-component-wikicron)[ Packagist](https://packagist.org/packages/mwstake/mediawiki-component-wikicron)[ RSS](/packages/mwstake-mediawiki-component-wikicron/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (8)Dependencies (9)Versions (19)Used By (0)

Wiki cron
=========

[](#wiki-cron)

Mechanism for executing scheduled tasks in MediaWiki

This allows extension to run [ProcessManager processes](https://github.com/hallowelt/mwstake-mediawiki-component-processmanager/blob/main/README.md)on a schedule, using standard crontab expression.

Compatibility
-------------

[](#compatibility)

- `1.0.x` -&gt; MediaWiki 1.43

Declare a cron
--------------

[](#declare-a-cron)

Use the `MWStake.WikiCronManager` service to declare a cron. The cron key is a unique identifier for the cron, the cron expression is a standard crontab expression, and the process is a `ManagedProcess` object (see above linked ProcessManager docu for more info).

```
$GLOBALS['wgExtensionFunctions'][] = static function () {
    /** @var WikiCronManager $cronManager */
    $cronManager = MediaWikiServices::getInstance()->getService( 'MWStake.WikiCronManager' );
    $cronManager->registerCron( 'notify', '*/5 * * * *', new ManagedProcess( [
        'test' => [ 'class' => TestStep::class ]
    ] ) );
};
```

Note: This does not need to be declared in an `extension function` but needs to be late enough to prevent premature service access.

Thats it! This process will be executed as declared in the cron expression. (as long as `processRunner` is running).

Info script
===========

[](#info-script)

See what crons are declared and their statuses.

List crons
----------

[](#list-crons)

```
> php maintenance/wikiCron.php
--------------------------------------------------------------------------------------------------------------
Interval            Cron key                                Enabled   Last run                 Last Status
--------------------------------------------------------------------------------------------------------------
*/5 * * * *         notify                                  Yes       2024-11-08 14:20:57      terminated
--------------------------------------------------------------------------------------------------------------
```

Note: If interval was manually override, it will be marked with `(ovr)` in the list/details.

Get full info and history on a cron
-----------------------------------

[](#get-full-info-and-history-on-a-cron)

```
> php maintenance/wikiCron.php --name=notify

Cron key: notify
Interval: */5 * * * *
Enabled: 1
Last run: 2024-11-08 14:30:06
Last status: terminated
--------------------------------------------------------------------------------------------------------------
Steps:
{
"test": {
"class": "MediaWiki\\Extension\\NotifyMe\\TestStep"
}
}
--------------------------------------------------------------------------------------------------------------
Execution history (max 20):
--------------------------------------------------------------------------------------------------------------
Time                     State               Exit code      Output
--------------------------------------------------------------------------------------------------------------
20241108143006           terminated          0              {"some":"data"}
20241108142501           terminated          0              {"some":"data"}
20241108142057           terminated          0              {"some":"data"}
20241108141652           terminated          0              {"some":"data"}
20241108141551           terminated          0              {"some":"data"}
20241108141450           terminated          0              {"some":"data"}
20241108141348           terminated          0              {"some":"data"}
20241108141247           terminated          0              {"some":"data"}
20241108141146           terminated          0              {"some":"data"}
20241108141045           terminated          0              {"some":"data"}
20241108140944           terminated          0              {"some":"data"}
20241108140842           terminated          0              {"some":"data"}
20241108140741           terminated          0              {"some":"data"}
20241108140640           terminated          0              {"some":"data"}
20241108140538           terminated          0              {"some":"data"}
20241108140437           terminated          0              {"some":"data"}
20241108140335           terminated          0              {"some":"data"}
20241108140234           terminated          0              {"some":"data"}
20241108140133           terminated          0              {"some":"data"}
20241108140031           terminated          0              {"some":"data"}
--------------------------------------------------------------------------------------------------------------
```

Functions
---------

[](#functions)

Disable a cron

```
> php maintenance/wikiCron.php --name=notify --disable

```

Enable a cron

```
> php maintenance/wikiCron.php --name=notify --enable

```

Set interval

```
> php maintenance/wikiCron.php --name=notify --interval="*/10 * * * *"

```

Reset interval to default

```
> php maintenance/wikiCron.php --name=notify --interval="default"

```

Force run

```
> php maintenance/wikiCron.php --name=notify --force-run

```

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance83

Actively maintained with recent releases

Popularity25

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 58.3% 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 ~25 days

Recently: every ~5 days

Total

17

Last Release

85d ago

Major Versions

1.0.7 → 2.0.02025-10-08

1.0.x-dev → 2.0.12025-10-10

2.0.3 → 3.0.02026-02-20

2.0.x-dev → 3.0.12026-02-23

### Community

Maintainers

![](https://www.gravatar.com/avatar/161c38b5448b71865cf0652b6974ed489dd3683b5d6e1814973cea6cb66c8f1d?d=identicon)[dsavuljesku](/maintainers/dsavuljesku)

---

Top Contributors

[![it-spiderman](https://avatars.githubusercontent.com/u/13665198?v=4)](https://github.com/it-spiderman "it-spiderman (21 commits)")[![HamishSlater](https://avatars.githubusercontent.com/u/26261210?v=4)](https://github.com/HamishSlater "HamishSlater (12 commits)")[![osnard](https://avatars.githubusercontent.com/u/1201528?v=4)](https://github.com/osnard "osnard (3 commits)")

### Embed Badge

![Health badge](/badges/mwstake-mediawiki-component-wikicron/health.svg)

```
[![Health](https://phpackages.com/badges/mwstake-mediawiki-component-wikicron/health.svg)](https://phpackages.com/packages/mwstake-mediawiki-component-wikicron)
```

###  Alternatives

[rainlab/blog-plugin

Blog plugin for October CMS

17257.7k](/packages/rainlab-blog-plugin)[rainlab/builder-plugin

Builder plugin for October CMS

17147.2k1](/packages/rainlab-builder-plugin)[pfefferle/wordpress-activitypub

The ActivityPub protocol is a decentralized social networking protocol based upon the ActivityStreams 2.0 data format.

5671.4k1](/packages/pfefferle-wordpress-activitypub)[civicrm/civicrm-drupal-8

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

18238.1k2](/packages/civicrm-civicrm-drupal-8)[mediawiki/semantic-glossary

A terminology markup extension with a Semantic MediaWiki back-end

1352.4k](/packages/mediawiki-semantic-glossary)[humanmade/lottie-lite

A lightweight Lottie Animations Extension for WordPress

374.3k](/packages/humanmade-lottie-lite)

PHPackages © 2026

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