PHPackages                             rockschtar/wordpress-cronjob - 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. rockschtar/wordpress-cronjob

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

rockschtar/wordpress-cronjob
============================

Library for use with roots/bedrock based WordPress projects. Simplifys the creation of WordPress cronjobs.

1.0.0(6y ago)013.2k[1 PRs](https://github.com/rockschtar/wordpress-cronjob/pulls)MITPHPPHP &gt;=7.1CI failing

Since Aug 9Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/rockschtar/wordpress-cronjob)[ Packagist](https://packagist.org/packages/rockschtar/wordpress-cronjob)[ RSS](/packages/rockschtar-wordpress-cronjob/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (2)Versions (13)Used By (0)

rockschtar/cronjob
==================

[](#rockschtarcronjob)

Description
===========

[](#description)

Library for use with roots/bedrock based WordPress projects. Simplifys the creation of WordPress cronjobs.

Requirements
============

[](#requirements)

- PHP 7.1+
- [Composer](https://getcomposer.org/) to install

License
=======

[](#license)

rockschtar/wordpress-cronjob is open source and released under MIT license. See LICENSE.md file for more info.

Usage
=====

[](#usage)

Create a cronjob class

```
class TestCronjob extends AbstractCronjob {

    public function execute(): void {
        //do some stuff
    }

    public function config(): CronjobConfig {
        $config = new CronjobConfig();
        $config->setHook('do_test_cronjob');
        $config->setPluginFile('some_plugin.php');
        $config->setFirstRun(new \DateTime());
        $config->setRecurrence('daily');
        return $config;
    }
}

```

Initialize the class

```
TestCronjob::init();

```

Question? Issues?
=================

[](#question-issues)

rockschtar/wordpress-cronjob is hosted on GitLab. Feel free to open issues there for suggestions, questions and real issues.

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance49

Moderate activity, may be stable

Popularity24

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

 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

Every ~73 days

Recently: every ~163 days

Total

10

Last Release

2230d ago

Major Versions

0.0.8 → 1.0.0-alpha.12020-04-14

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/87191?v=4)[Stefan Helmer](/maintainers/rockschtar)[@rockschtar](https://github.com/rockschtar)

---

Top Contributors

[![rockschtar](https://avatars.githubusercontent.com/u/87191?v=4)](https://github.com/rockschtar "rockschtar (30 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rockschtar-wordpress-cronjob/health.svg)

```
[![Health](https://phpackages.com/badges/rockschtar-wordpress-cronjob/health.svg)](https://phpackages.com/packages/rockschtar-wordpress-cronjob)
```

PHPackages © 2026

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