PHPackages                             jeffreyvanrossum/wp-job-scheduler - 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. [Queues &amp; Workers](/categories/queues)
4. /
5. jeffreyvanrossum/wp-job-scheduler

ActiveLibrary[Queues &amp; Workers](/categories/queues)

jeffreyvanrossum/wp-job-scheduler
=================================

Handy wrapper to make creating WordPress job scheduling and dispatch a breeze.

0.1.3(2y ago)1165MITPHPPHP ^8.0

Since Feb 29Pushed 2y ago1 watchersCompare

[ Source](https://github.com/jeffreyvr/wp-job-scheduler)[ Packagist](https://packagist.org/packages/jeffreyvanrossum/wp-job-scheduler)[ RSS](/packages/jeffreyvanrossum-wp-job-scheduler/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (5)Versions (5)Used By (0)

[![vanrossum.dev Logo](https://raw.githubusercontent.com/jeffreyvr/vanrossum.dev-art/main/logo.svg)](https://vanrossum.dev)

[![Total Downloads](https://camo.githubusercontent.com/ecc7c4370a9a58708a2298aa328624cfc96679231f14b3caa31e151dfc091514/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a65666672657976616e726f7373756d2f77702d6a6f622d7363686564756c6572)](https://packagist.org/packages/jeffreyvanrossum/wp-job-scheduler)[![Latest Stable Version](https://camo.githubusercontent.com/92ac5eda59949805a646848932bdbe8e24ad22093366bcf41099e94f49b2dee8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a65666672657976616e726f7373756d2f77702d6a6f622d7363686564756c6572)](https://packagist.org/packages/jeffreyvanrossum/wp-job-scheduler)[![License](https://camo.githubusercontent.com/e9d118498ca5d14609807bf057a81ad4f436ecfc480f05954f49cfcb1a8e2b0a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6a65666672657976616e726f7373756d2f77702d6a6f622d7363686564756c6572)](https://packagist.org/packages/jeffreyvanrossum/wp-job-scheduler)

WP Job Scheduler
================

[](#wp-job-scheduler)

> 🚧 This package is still work in progress

This package is an attempt to make job dispatching and scheduling easier in WordPress.

Inspired by the syntax of Laravel and using [Action Scheduler](https://github.com/woocommerce/action-scheduler/) from WooCommerce, for more reliable handeling.

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

[](#installation)

```
composer require jeffreyvanrossum/wp-job-scheduler
```

Usage
-----

[](#usage)

### Setup

[](#setup)

Within your theme or plugin, add:

```
WPJobScheduler::instance()
    ->projectRootPath(__DIR__)
    ->scheduler(function() {
        ExampleJob::schedule('hourly');
    })
    ->boot();
```

### Dispatching single jobs

[](#dispatching-single-jobs)

```
ExampleJob::dispatch();
```

You may pass a callback to do some changes on the job before it is dispatched:

```
ExampleJob::dispatch(function($job) {
    $job->withDelay(30);
});
```

You may also pass some initial constructor arguments:

```
ExampleJob::dispatch(function($job) {
    $job->withDelay(30);
}, ['foo' => 'bar']);
```

Example Job
-----------

[](#example-job)

```
class ExampleJob implements Jobable
{
    use IsJob, Schedulable, Dispatchable;

    public function handle()
    {
        // the actual handling of the job
    }

    public function before(): void
    {
        // before the job has been handled
    }

    public function after(): void
    {
        // after the job has been handled
    }

    public function catch(Throwable $e): void
    {
        // do something with exception
    }
}
```

Contributors
------------

[](#contributors)

- [Jeffrey van Rossum](https://github.com/jeffreyvr)
- [All contributors](https://github.com/jeffreyvr/wp-job-scheduler/graphs/contributors)

License
-------

[](#license)

MIT. Please see the [License File](/LICENSE) for more information.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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 ~0 days

Total

4

Last Release

802d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/66ca71465f93459010e10f39821b541f1c00c61233c48bcda0cea8a8d6fb6988?d=identicon)[jeffreyvr](/maintainers/jeffreyvr)

---

Top Contributors

[![jeffreyvr](https://avatars.githubusercontent.com/u/9550079?v=4)](https://github.com/jeffreyvr "jeffreyvr (8 commits)")

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/jeffreyvanrossum-wp-job-scheduler/health.svg)

```
[![Health](https://phpackages.com/badges/jeffreyvanrossum-wp-job-scheduler/health.svg)](https://phpackages.com/packages/jeffreyvanrossum-wp-job-scheduler)
```

###  Alternatives

[league/geotools

Geo-related tools PHP 7.3+ library

1.4k5.3M26](/packages/league-geotools)[amphp/parser

A generator parser to make streaming parsers simple.

14952.8M16](/packages/amphp-parser)[amphp/serialization

Serialization tools for IPC and data storage in PHP.

13451.1M18](/packages/amphp-serialization)[enqueue/enqueue

Message Queue Library

19820.0M56](/packages/enqueue-enqueue)[deliciousbrains/wp-background-processing

WP Background Processing can be used to fire off non-blocking asynchronous requests or as a background processing tool, allowing you to queue tasks.

1.1k409.8k6](/packages/deliciousbrains-wp-background-processing)[react/async

Async utilities and fibers for ReactPHP

2238.8M171](/packages/react-async)

PHPackages © 2026

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