Skip to content

Conversation

@andrefelipe18
Copy link
Contributor

This pull request introduces several updates to enhance functionality, improve result visualization, and align dependencies. The most significant changes include adding a new consoleTable method for formatted result display, integrating Laravel Prompts, and updating documentation with examples of the new features.

Feature Enhancements:

  • Formatted Console Table Output: Added a new consoleTable method to the HunterResult class for displaying results in a structured table format. This method leverages Laravel Prompts for better visualization and includes metrics like total records, success rate, execution time, and memory usage. It also provides warnings and information about failed or skipped records. (src/HunterResult.php, src/HunterResult.phpR128-R183)

Dependency Updates:

  • Laravel Prompts Integration: Updated composer.json to include laravel/prompts as a new dependency (^0.3.5) to support the formatted console table feature. (composer.json, composer.jsonL20-R22)

Documentation Improvements:

  • Examples for Console Table Output: Enhanced docs/examples.md with detailed examples demonstrating the new consoleTable method, including integration with Laravel commands and comparison of dry run vs actual execution. (docs/examples.md, docs/examples.mdR609-R707)

Configuration Updates:

  • Rector Configuration: Updated rector.php to skip the StringClassNameToClassConstantRector rule for compatibility with PHP 5.5. (rector.php, rector.phpR21)

Minor Fixes:

  • Docblock Adjustment: Corrected the return type docblock in the hunter helper function for clarity. (src/helpers.php, src/helpers.phpL12)

@andrefelipe18 andrefelipe18 requested a review from edeoliv June 25, 2025 14:03
@andrefelipe18 andrefelipe18 self-assigned this Jun 25, 2025
@cloudflare-workers-and-pages
Copy link

Deploying hunter with  Cloudflare Pages  Cloudflare Pages

Latest commit: 90f2087
Status: ✅  Deploy successful!
Preview URL: https://308962b9.hunter-1et.pages.dev
Branch Preview URL: https://development.hunter-1et.pages.dev

View logs

@andrefelipe18 andrefelipe18 merged commit 82b6faf into main Jun 25, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants