zenstruck/callback
Tiny PHP utility for building and composing callbacks/closures with a fluent API. Helps wrap callables, bind arguments, decorate or chain behavior, and safely invoke functions and methods—handy for middleware-style pipelines, event hooks, and reusable functional helpers.
Architecture fit: The package provides a framework-agnostic utility that seamlessly integrates with Laravel's event system, queue jobs, and route definitions by standardizing callable handling. It avoids architectural changes while improving consistency across codebases that rely on dynamic callbacks.
Integration feasibility: High. As a Composer-based dependency with no external requirements, it requires only composer require zenstruck/callback and minimal code changes. The Callback object's `__invoke
How can I help you explore Laravel packages today?