PHPackages                             sunmking/think8-queue - 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. sunmking/think8-queue

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

sunmking/think8-queue
=====================

thinkphp8 queue lib

2.0(9mo ago)118MITPHPCI failing

Since Dec 22Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/sunmking/think8-queue)[ Packagist](https://packagist.org/packages/sunmking/think8-queue)[ RSS](/packages/sunmking-think8-queue/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

Think8-Queue
============

[](#think8-queue)

> 基于现代设计模式重构的 ThinkPHP 8 队列库

[![PHP Version](https://camo.githubusercontent.com/f32695bd6f65b12545162e869707d33dac6bcb5f6e5dc0d48b6d1f8162b6c247/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344382e302d626c75652e737667)](https://www.php.net/)[![ThinkPHP](https://camo.githubusercontent.com/25494a45f0b9f4f04acf53a5ca22df7df744409d11042220047cbca9aa972515/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7468696e6b7068702d382e302b2d677265656e2e737667)](https://www.thinkphp.cn/)[![License](https://camo.githubusercontent.com/4141875b9db06b6e19ee4c8c4f14f34b47dabb4fcdad7816e338a79666b0aacb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d7265642e737667)](LICENSE)

✨ 特性
----

[](#-特性)

- 🏗️ **Builder模式**：流畅的API设计，支持链式调用
- 🎯 **中间件支持**：可插拔的中间件系统，灵活扩展
- 📡 **事件系统**：完整的事件监听机制，支持任务生命周期
- ⚙️ **配置管理**：灵活的配置系统，支持动态配置
- 🔧 **类型安全**：完整的类型声明，减少运行时错误
- 🚀 **高性能**：优化的执行流程，支持批量任务
- 🔄 **向后兼容**：保持与旧版本的兼容性

📦 安装
----

[](#-安装)

```
composer require sunmking/think8-queue
```

🚀 快速开始
------

[](#-快速开始)

### 1. 创建任务类

[](#1-创建任务类)

```
