PHPackages                             stellarwp/shepherd - 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. stellarwp/shepherd

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

stellarwp/shepherd
==================

A library for offloading tasks to background processes.

0.2.1(4mo ago)2133.5k↑158.8%[1 PRs](https://github.com/stellarwp/shepherd/pulls)GPL-2.0-or-laterPHPPHP &gt;=7.4

Since Jul 13Pushed 4mo ago4 watchersCompare

[ Source](https://github.com/stellarwp/shepherd)[ Packagist](https://packagist.org/packages/stellarwp/shepherd)[ RSS](/packages/stellarwp-shepherd/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (10)Dependencies (19)Versions (15)Used By (0)

Shepherd
========

[](#shepherd)

Shepherd is a lightweight and powerful background processing library for WordPress, built on top of Action Scheduler. It provides a simple, fluent API for defining and dispatching asynchronous tasks, with built-in support for retries, debouncing, and logging.

Features
--------

[](#features)

- **Simple, Fluent API**: A straightforward way to define and dispatch background tasks.
- **Action Scheduler Integration**: Leverages the reliability of Action Scheduler for task processing.
- **Automatic Retries**: Configurable automatic retries for failed tasks.
- **Debouncing**: Prevent tasks from running too frequently.
- **Logging**: Built-in database logging for task lifecycle events.
- **Included Tasks**: Comes with ready-to-use tasks including `Email` (with multi-recipient support), `HTTP_Request`, and `Herding` tasks.

Getting Started
---------------

[](#getting-started)

For a guide on how to install Shepherd and get started with creating and dispatching your first task, please see our [Getting Started guide](./docs/getting-started.md).

Advanced Usage
--------------

[](#advanced-usage)

For more detailed information on advanced features like task retries, debouncing, unique tasks, and logging, please refer to our [Advanced Usage guide](./docs/advanced-usage.md).

Built-in Tasks
--------------

[](#built-in-tasks)

Shepherd comes with a set of pre-packaged tasks to handle common background operations. For more information, please see our [Tasks guide](./docs/tasks.md).

Contributing
------------

[](#contributing)

We welcome contributions! Please see our contributing guidelines for more information.

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance73

Regular maintenance activity

Popularity36

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 78% 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 ~18 days

Recently: every ~31 days

Total

12

Last Release

149d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e3171496e198834c638911ad3c3220bec77871cdf6557eaa9e2a58d16600a1a1?d=identicon)[bordoni](/maintainers/bordoni)

![](https://www.gravatar.com/avatar/70a2847a265444714b48c64eceb3ca742baa3a56757ce65b18bd7bbbbf910312?d=identicon)[dpanta94](/maintainers/dpanta94)

![](https://www.gravatar.com/avatar/97fd764aa710e8d8263a7e3b3fececdfd736b8aad8055227bf592ddf50ad15ba?d=identicon)[stellarwp](/maintainers/stellarwp)

![](https://www.gravatar.com/avatar/ec4ef25906386b60f5f66b3d03064e3bb700bedc94ee8558918565612c74aef3?d=identicon)[johnhooks](/maintainers/johnhooks)

---

Top Contributors

[![dpanta94](https://avatars.githubusercontent.com/u/29694484?v=4)](https://github.com/dpanta94 "dpanta94 (276 commits)")[![moraleida](https://avatars.githubusercontent.com/u/1174547?v=4)](https://github.com/moraleida "moraleida (38 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (17 commits)")[![borkweb](https://avatars.githubusercontent.com/u/430385?v=4)](https://github.com/borkweb "borkweb (11 commits)")[![Camwyn](https://avatars.githubusercontent.com/u/929375?v=4)](https://github.com/Camwyn "Camwyn (8 commits)")[![lucatume](https://avatars.githubusercontent.com/u/2749650?v=4)](https://github.com/lucatume "lucatume (4 commits)")

### Embed Badge

![Health badge](/badges/stellarwp-shepherd/health.svg)

```
[![Health](https://phpackages.com/badges/stellarwp-shepherd/health.svg)](https://phpackages.com/packages/stellarwp-shepherd)
```

###  Alternatives

[symfony/messenger

Helps applications send and receive messages to/from other applications or via message queues

1.1k132.9M1.5k](/packages/symfony-messenger)[symfony/cache

Provides extended PSR-6, PSR-16 (and tags) implementations

4.2k373.5M3.3k](/packages/symfony-cache)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[symfony/amazon-sqs-messenger

Symfony Amazon SQS extension Messenger Bridge

4614.0M22](/packages/symfony-amazon-sqs-messenger)[ecotone/ecotone

Enterprise architecture layer for Laravel and Symfony — CQRS, Event Sourcing, Durable Workflows (Sagas, Orchestrators), Projections, and Outbox messaging via PHP attributes.

564576.7k53](/packages/ecotone-ecotone)

PHPackages © 2026

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