artisanpack-ui/hooks
WordPress-style actions and filters for Laravel. Register callbacks on named hooks and filter values with helper functions, Facades, and Blade directives. Predictable priority order, auto-discovery, and support for removing specific or all callbacks.
order.placed → trigger inventory updates, notifications, and audits independently).@action, @filter) allow frontend teams to modify behavior without backend changes (e.g., dynamic pricing displays).webhook.received).For Executives:
"This package lets us build a plug-and-play Laravel ecosystem—like WordPress for PHP. Teams can extend core functionality (e.g., payments, notifications) without rewriting the app. For example, a new analytics vendor could hook into user.activity without touching our codebase. It also enforces consistent code quality via Pint integration, reducing tech debt. Early adopters like [Hypothetical Company] cut feature delivery time by 30% using similar systems."
For Engineers:
*"Think of this as Laravel’s missing do_action/apply_filters. Key benefits:
order.shipped) with priority control.price.display → format currency).@filter('title', $post->title)).composer require and go.
Use case: Replace if/else spaghetti in your OrderController with addAction('order.processed', ...) for cleaner, testable code."*For Designers/Non-Tech: "This lets developers hook into the app’s ‘events’—like when a user signs up or an order ships—so they can add features without breaking existing ones. For example, we could add a new ‘loyalty points’ system later without touching the checkout code."
How can I help you explore Laravel packages today?