realzone22/larahooks
Larahooks brings WordPress-style action and filter hooks to Laravel, letting you extend core behavior and wire in package or module logic without touching source files. Register callbacks, fire actions, and filter values through a simple, lightweight API that fits neatly into any Laravel app.
composer require realzone22/larahooks (verify package name from repository).vendor:publish).README.md and src/ directory to understand the hook registration API.// In a service provider
Hook::addAction('user.registered', function ($user) {
// send welcome email
});
// Elsewhere
Hook::doAction('user.registered', $user);
config/app.php aliases (for Laravel < 5.5) or rely on auto-discovery.HookServiceProvider to keep them centralized. Use boot() for actions and register() only if you need to bind services.Hook::applyFilters('user.name', $name)).Hook::clear() method) to avoid cross-test contamination.src/Hook.php, facades, service provider) to understand available methods.myplugin.user.registered) to avoid conflicts.config/larahooks.php if available.^1.0 and watch for breaking changes in minor releases until the API stabilizes.How can I help you explore Laravel packages today?