skrip42/strategy-bundle
A PHP bundle implementing the strategy pattern: define interchangeable algorithms, register them with the service container, and resolve the right implementation at runtime by configuration or context. Keeps branching logic decoupled and swappable.
skrip42/strategy-bundle brings a clean, container-friendly implementation of the Strategy pattern to PHP applications. It lets you encapsulate interchangeable algorithms behind a shared interface and select the right one at runtime, keeping business logic decoupled from the code that decides how to execute it.
How can I help you explore Laravel packages today?