e2tmk/hunter
最新稳定版本:v1.2.3
Composer 安装命令:
composer require e2tmk/hunter
包简介
Powerful utility for finding and processing Eloquent model records with a fluent, chainable API.
README 文档
README
Hunter
Powerful utility for finding and processing Eloquent model records with a fluent, chainable API.
Hunter provides a clean way to search for records based on specific criteria and execute multiple actions on them with comprehensive error handling, logging, and advanced flow control.
Installation
You can install the package via Composer:
composer require e2tmk/hunter
Quick Example
use Hunter\Hunter; // Process all pending orders $result = hunter(Order::class) ->find('status', 'pending') ->then(function (Order $order) { $order->process(); }) ->hunt(); echo $result->summary(); // "Total: 15, Successful: 14, Failed: 1, Skipped: 0"
Features
- 🔍 Powerful Search: Find records with flexible criteria
- 🔗 Fluent API: Chainable methods for clean code
- 🎯 Multiple Actions: Execute several actions per record
- ⚡ Flow Control: Skip, fail, or stop processing gracefully
- 📊 Comprehensive Reporting: Detailed statistics and error tracking
Documentation
License
The project is licensed under the MIT License.
统计信息
- 总下载量: 112
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 15
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-06-25