yohang/finite
yohang/finite is a lightweight PHP finite state machine library for modeling workflows and state transitions. Define states, transitions, guards, and callbacks with a fluent API, and use it in Laravel or any PHP application.
yohang/finite when a feature has explicit, bounded lifecycle states—order status, payment state, subscription lifecycle, onboarding progress, approval status, ticket workflow—and the product risk is invalid or skipped transitions.if/else status checks or ad hoc enum transition methods when multiple teams need shared transition rules. Prefer it over a full BPM/workflow platform when the domain is simple, single-application, and developer-owned.yohang/finite is a small MIT-licensed PHP finite state machine that can reduce invalid workflow transitions in Laravel/PHP products at low licensing cost. It is best positioned as an implementation library for well-bounded status flows, not as a complete workflow platform.How can I help you explore Laravel packages today?