Weave 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

Hookable Laravel Package

sofa-support/hookable

Hookable adds a lightweight hook system to Laravel Eloquent models, letting you register callbacks that run before or after events like create, update, and delete without scattering logic across observers. It keeps model behavior tidy, composable, and easy to test.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Feature scoping for lifecycle side effects: Evaluate whether model-level hooks are enough for low-risk features such as audit trails, cache invalidation, derived fields, notifications, or lightweight workflow triggers.
  • Build vs. buy for internal plumbing: Helps decide whether to adopt a small OSS hooks trait versus investing in native Laravel observers/events or a custom internal trait.
  • Roadmap sequencing: If the product needs user-configurable automation or extensibility, treat this package as a prototype aid, not the foundation; a first-class event/outbox/automation system belongs on the roadmap instead.
  • Use-case fit: Best suited to prototypes, internal tools, admin workflows, and small teams that want Eloquent lifecycle hooks with less observer boilerplate.
  • Risk assessment: With 65 stars, 0 dependents, and a last release in December 2020, this should be framed as a low-adoption utility with maintenance and compatibility risk.

When to Consider This Package

  • Consider it for non-critical, internal, or short-lived Laravel applications where model lifecycle hooks reduce boilerplate and the team accepts dependency risk.
  • Consider it when the team has a specific need for reusable Eloquent hooks across several models and native observers feel too ceremony-heavy.
  • Do not consider it as a strategic dependency for customer-facing automation, billing, compliance, audit, or data-integrity workflows.
  • Look elsewhere when you need current Laravel/PHP compatibility guarantees, active maintenance, security review, broad community validation, or a supported commercial relationship.
  • Prefer native Laravel events/observers for standard model lifecycle behavior, and build a small internal trait if the only gap is ergonomics.
  • Treat the low opportunity score and zero dependents as signals to run a time-boxed spike before any adoption decision.

How to Pitch It (Stakeholders)

  • To executives: This is a small utility that may speed up low-risk Laravel features, but it is not a strategic platform bet. It should be adopted only where failure is contained and migration back to native Laravel patterns is cheap.
  • To engineering: It offers an Eloquent hooks pattern that can reduce observer boilerplate for simple side effects. However, it is an older package with limited adoption, so validate compatibility, test upgrade paths, and keep hooks thin and isolated.
  • To product/architecture: Use it only as an implementation detail, not as the product’s extensibility model. If customers need to define their own automations or hooks, fund a proper event/automation architecture rather than exposing this package directly.
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.
coleus/frame
thtg88/journalism
filagora/filagora-ai-forums
rlacerda83/query-parser
socialdept/atp-orm
cboxdk/laravel-assistant-client
socialdept/atp-resolver
socialdept/tenant-domains
tautvydasr/blade-class-names
socialdept/color-scales
maherelgamil/controller
coleus/widgets
coleus/table
coleus/users
coleus/music
coleus/health
coleus/calendar
coleus/notes
coleus/support
coleus/settings