openclassrooms/use-case
A lightweight PHP package for expressing business logic as explicit, single-responsibility use cases. Keeps controllers and models thin, makes domain code testable and framework-agnostic, and integrates cleanly with Laravel applications.
lorisleiva/laravel-actions), or plain command/handler wiring.Consider it when:
Look elsewhere when:
To executives: This is a low-cost, low-risk internal experiment in standardizing how business logic is written — not a customer-facing bet. The investment is a few engineer-days plus a named owner; the payoff is faster onboarding, cleaner module boundaries, and cheaper refactoring later. Adoption risk is real but contained: MIT license, small surface area, and we can fork it if the upstream goes quiet.
To engineering: The value is the convention, not the code — the library is thin enough that we could reproduce it ourselves in a couple of hundred lines. It gives us one boring, consistent shape for business operations, keeps logic out of controllers, and makes each capability independently testable through the container. The honest caveat: no community, no dependents, no support. So the ask is a time-boxed spike on one bounded context, with an explicit decision gate — adopt-and-fork (pinned, vendored, with an internal owner) or replicate the pattern in-house and drop the dependency. Either outcome is a win as long as we decide deliberately rather than drift into it.
How can I help you explore Laravel packages today?