konekt/xtend
Konekt Extend lets Laravel apps extend existing PHP classes at runtime—attach traits, methods, interfaces, and relationships (even to Eloquent models) without editing vendor or source files. Configuration-driven and ideal for modular packages and plugins.
Consider it when:
Look elsewhere when:
nwidart/laravel-modules or Konekt Concord for modularity, or a first-party extension layer you control.To executives (one slide). Problem: customers and partners want behavior we don't ship. Options: (a) build an extension layer ourselves, (b) adopt this MIT package and invest in the contract around it, (c) keep forking per customer. This package makes (b) cheap to test — no license cost, small codebase, no vendor lock-in — but it is a one-maintainer library with near-zero adoption. Recommendation: fund a two-week spike behind a feature flag to validate demand and API fit; do not commit it to the customer-facing platform without either owning the fork or budgeting ongoing engineering time for it.
To engineering. Thin, permissively licensed, readable. Assume you own it. Verify Laravel/PHP version support on day one, pin the version, vendor the source, and write characterization tests around plugin registration and lifecycle before building on it. Keep an abstraction seam so it can be swapped. Exit cost is low — that is the main argument for trying it.
To sales and partners. Do not promise a plugin ecosystem yet. Prototype internally; externalize only once we have a versioning policy, public documentation, and a named support owner.
How can I help you explore Laravel packages today?