Skip to content

πŸ” Powerful Eloquent model utility for advanced searching, filtering, and batch processing with a fluent, chainable API

License

Notifications You must be signed in to change notification settings

e2tmk/hunter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

32 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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.

About

πŸ” Powerful Eloquent model utility for advanced searching, filtering, and batch processing with a fluent, chainable API

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages