illuminate/tappable (Laravel’s foundation) to ensure compatibility with existing Laravel packages or future Hyperf-Laravel integrations. Avoids fragmentation in hybrid PHP stacks.Adopt if:
tap(), macro(), after()).tappable patterns (e.g., from Eloquent or Illuminate containers).Look elsewhere if:
tappable may suffice).goaop/go-aop or brick/math for cross-cutting concerns.For Executives: "This package lets our Hyperf-based services adopt Laravel’s battle-tested ‘tappable’ patterns—enabling teams to add reusable, non-intrusive logic (like hooks or middleware) with minimal code. Think of it as ‘Laravel macros for Hyperf’: it’s lightweight, MIT-licensed, and reduces dev time for extensible features. Ideal for products needing dynamic workflows (e.g., plugins, analytics) without locking into Laravel. Risk is low—it’s a thin abstraction with no external dependencies."
For Engineering:
*"hyperf/tappable brings Laravel’s illuminate/tappable to Hyperf, giving us tap(), macro(), and after() methods for classes like requests, responses, or commands. Use cases:
How can I help you explore Laravel packages today?