Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Dynamic Helpers Laravel Package

l0n3ly/laravel-dynamic-helpers

View on GitHub
Deep Wiki
Context7
v2.0.0

🎉 Version 2.0.0 - Dynamic Helper Registration & Auto IDE Generation

Major architectural redesign shifting from static helper registration to dynamic, boot-time helper discovery with automatic IDE file generation.

✨ Major New Features

Real PHP Functions at Boot Time

  • Helper classes are converted to actual PHP functions at service provider boot
  • Functions created dynamically via eval() for true runtime availability
  • Full nested path support with automatic camelCase conversion
    • Example: Store/TenantHelper.phpstoreTenantHelper() global function
    • Example: Payment/StripeHelper.phppaymentStripeHelper() global function

Automatic IDE File Generation

  • .phpstorm.meta.php generated automatically for PhpStorm integration
  • _ide_helper.php generated with function stubs for universal IDE introspection
  • Files stay in sync with filesystem changes on every application boot
  • IDE helper files automatically added to .gitignore on first boot
  • No manual regeneration needed

Three Access Patterns

  • Global functions: moneyHelper()
  • Static method calls: MoneyHelper::format(100) (via __callStatic magic method)
  • Proxy methods: helpers()->moneyHelper()

Laravel Boost Integration

  • Helper creation skill for AI-assisted code generation
  • Core guidelines documentation for Boost
  • Seamless AI-powered helper scaffolding

🔄 Breaking Changes

From v1.x to v2.0.0:

  • Helper registration is now automatic (no manual registration needed)
  • Service provider behavior changed to boot-time dynamic registration
  • IDE files are now auto-generated (no manual helpers:ide command needed)
  • Helpers must be classes extending the base Helper class

📦 Installation

composer require l0n3ly/laravel-dynamic-helpers:^2.0
php artisan vendor:publish --tag=dynamic-helpers

💡 Usage Examples

# Create a helper
php artisan make:helper Money

# It's automatically available as:
moneyHelper()->format(100)
MoneyHelper::format(100)
helpers()->moneyHelper()

# Create nested helpers
php artisan make:helper Store/Tenant

# Automatically becomes:
storeTenantHelper()->getTenant()
StoreTenantHelper::getTenant()
helpers()->storeTenantHelper()

✅ Tested Against

  • Laravel 11.x
  • Laravel 12.x
  • Laravel 13.x

Revolutionary release bringing true dynamic helpers to Laravel with AI-powered scaffolding and automatic IDE integration!

v1.3.0

🚀 Version 1.3.0 - Laravel 13 Ready

Comprehensive support for Laravel 13 with an updated testing matrix across Laravel 11, 12, and 13.

✨ New Features

Laravel 13 Compatibility

  • ✅ Full Laravel 13 support with comprehensive testing
  • ✅ Tested on Laravel 11, 12, and 13
  • Updated minimum Laravel version requirement to 11.0
  • Enhanced CI/CD workflow with multi-version testing

🔧 Technical Updates

  • Updated Testbench constraint to v11.0
  • Expanded CI/CD pipeline for thorough multi-version testing
  • Maintained backward compatibility with Laravel 11 and 12
  • All helper patterns work seamlessly across versions

⚠️ Breaking Changes

Dropped Support

  • ❌ Laravel 10 is no longer supported
  • Package now requires Laravel 11 or higher
  • Users on Laravel 10 should remain on v1.2.0

📦 Installation

composer require l0n3ly/laravel-dynamic-helpers:^1.3

✅ Tested Against

  • Laravel 11.x
  • Laravel 12.x
  • Laravel 13.x

Production-ready for latest Laravel versions with comprehensive test coverage.

v1.2.0

🎯 Version 1.2.0 - IDE Helper Generation

This release adds automatic IDE helper generation, providing superior autocompletion and type hints for your dynamic helpers.

✨ New Features

IDE Helper Generation

  • New helpers:ide Artisan command for generating IDE helper files
  • Automatic regeneration after make:helper command
  • Seamless IDE autocompletion for all registered helpers
  • Support for both PhpStorm and generic IDE helpers

Enhanced Developer Experience

  • Clearer output messages from make:helper command
  • Better visibility into generated helper usage
  • IDE files automatically generated on first run
  • Improved package metadata

💡 Usage

# Generate helpers with IDE support
php artisan make:helper Payment

# Manually regenerate IDE files
php artisan helpers:ide

# Now your IDE knows about all helpers
$payment = paymentHelper()->process(...);

📦 Installation

composer require l0n3ly/laravel-dynamic-helpers:^1.2

Enhanced developer experience with automatic IDE helper generation.

v1.1.0

🎉 Version 1.1.0 - Dynamic Helpers Foundation

First full-featured release bringing automatic helper registration and a clean API for organizing your application helpers.

✨ New Features

Dynamic Helper Registration

  • Automatic global helper function creation from app/Helpers directory
  • Smart naming convention: Store/CreateHelperstoreCreateHelper() global function
  • HelperProxy for seamless dynamic method forwarding
  • Nested path support with automatic camelCase conversion

Developer Tools

  • make:helper Artisan command for scaffolding new helpers
  • Comprehensive documentation and usage examples
  • Composer scripts for testing and code formatting

💡 Usage

# Create a new helper
php artisan make:helper Money

# Use the helper
$formatted = moneyHelper()->format(100);

📦 Installation

composer require l0n3ly/laravel-dynamic-helpers:^1.1

First production-ready release with dynamic helper registration.

v1.0.0

🎊 Version 1.0.0 - Initial Release

The first release of Laravel Dynamic Helpers, introducing a lightweight package for organizing and managing helper functions in Laravel applications.

✨ Features

  • Simple file-based helper creation in app/Helpers directory
  • Automatic helper registration and instantiation
  • Clean architecture for organizing application helpers

📦 Installation

composer require l0n3ly/laravel-dynamic-helpers

Foundation release marking the beginning of cleaner helper management.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor