Download the PHP package rwsite/wp-queue without Composer
On this page you can find all versions of the php package rwsite/wp-queue. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rwsite/wp-queue
More information about rwsite/wp-queue
Files in rwsite/wp-queue
Package wp-queue
Short Description Background job processing and WP-Cron management for WordPress
License GPL-2.0-or-later
Homepage https://github.com/rwsite/wp-queue
Informations about the package wp-queue
WP Queue
Laravel Horizon-like queue manager for WordPress
Simple, powerful, and modern background job processing.
Features • Installation • Quick Start • Admin UI • REST API • Testing • RU version
Features
- 🚀 Laravel-style API — Clean, fluent job dispatching with PHP 8 attributes
- 📦 Multiple Drivers — Database, Redis, Memcached, Sync (auto-detection)
- 🔄 Auto Retries — Exponential backoff for failed jobs
- ⏰ Scheduling — Cron-like job scheduling
- 👁️ WP-Cron Monitor — View, run, pause, resume, edit cron events
- 📊 Dashboard — Beautiful admin UI with statistics
- 🔌 REST API — Full API for integrations
- 💻 WP-CLI — Complete command-line interface
- 🌍 i18n Ready — Translations included (Russian)
Requirements
- PHP 8.3+
- WordPress 6.0+
Installation
- Clone or download to
wp-content/plugins/wp-queue - Run
composer install - Activate the plugin
Quick Start
Create a Job
Dispatch Jobs
Schedule Jobs
PHP 8 Attributes
#[Schedule]
Available intervals: min, 5min, 10min, 15min, 30min, hourly, 2hourly, 3hourly, 6hourly, 8hourly, 12hourly, daily, twicedaily, weekly
#[Queue]
#[Timeout]
#[Retries]
#[UniqueJob]
Events (Hooks)
Queue Management
Admin UI
Access via WP Admin → WP Queue
Tabs
| Tab | Description |
|---|---|
| Dashboard | Stats (pending, running, completed, failed), queue management |
| Scheduled Jobs | WP Queue jobs with "Run Now" button |
| Logs | Execution history with filtering |
| WP-Cron | All WordPress cron events monitoring |
| System | Environment status and health check |
WP-Cron Monitor
View and manage all WordPress cron events:
- Filter by source (WordPress, WooCommerce, Plugins, WP Queue)
- See overdue events
- Run events manually
- Delete scheduled events
- View registered schedules
System Status
Health check and environment info:
- PHP/WordPress versions
- Memory limit and usage
- WP-Cron status (disabled/alternate)
- Loopback request check
- Action Scheduler stats (if installed)
- Timezone and time info
REST API
Queue Drivers
WP Queue supports multiple storage backends:
| Driver | Description | Requirements |
|---|---|---|
database |
Uses wp_options table (default) | None |
redis |
Redis server | phpredis extension |
memcached |
Memcached server | memcached extension |
sync |
Synchronous execution | None |
auto |
Auto-detect best available | None |
Configuration
Add to wp-config.php:
Programmatic Configuration
Redis with redis-cache Plugin
If you use Redis Object Cache plugin, WP Queue will automatically use the same Redis connection settings. No additional configuration needed!
Migration from Action Scheduler
Before (Action Scheduler)
After (WP Queue)
Comparison with Action Scheduler
| Feature | Action Scheduler | WP Queue |
|---|---|---|
| Database | 2 custom tables | wp_options |
| API | 20+ functions | 1 facade |
| PHP version | 7.4+ | 8.3+ |
| Registration | Manual | Attributes |
| Retry logic | Complex | #[Retries(3)] |
| UI | Built-in | Built-in |
| File count | 50+ | ~15 |
Testing
WP Queue uses a CI-first testing approach with comprehensive test coverage.
Unit Tests (Local)
Fast isolated tests without WordPress environment:
Results: 69 tests, 130 assertions ✅
E2E Tests (GitHub Actions)
Integration tests with real WordPress run automatically in CI:
- ✅ WordPress latest (6.7+) + PHP 8.3
- ✅ WordPress 6.7 + PHP 8.3
E2E tests run on every push to main/develop branches and in pull requests.
Code Quality
Note: Code coverage requires PCOV or Xdebug extension. In Docker environments, use:
See: tests/README.md
Example Plugin
See a complete working example: wp-queue-example-plugin
The example plugin demonstrates:
- ✅ Creating custom jobs with PHP 8 attributes
- ✅ Job scheduling with different intervals
- ✅ Error handling and retries
- ✅ Chain and batch processing
- ✅ Queue management and monitoring
- ✅ REST API integration
- ✅ WP-CLI commands
Perfect for learning how to integrate WP Queue into your WordPress plugins!
License
GPL-2.0-or-later