定制 e2tmk/hunter 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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 Logo

Hunter

Latest Version on Packagist Total Downloads License

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

📖 Complete Documentation

License

The project is licensed under the MIT License.

统计信息

  • 总下载量: 112
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 15
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 14
  • Watchers: 0
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-06-25