bjuppa/eloquent-state-machine
Add state machine behavior to Laravel Eloquent models. Define states, transitions, and guards, then move records through your workflows with a clean, expressive API that keeps business logic organized, predictable, and easy to test.
draft → review → published) directly on Eloquent models, so product decisions about workflow rules (who can move what, when, with what side effects) become explicit code rather than scattered if ($status === ...) checks.Consider it when:
Look elsewhere or defer adoption when:
For executives (one-liner): A small Laravel package that makes application workflows (approvals, order status, publishing) explicit and auditable in code — promising for standardizing workflow logic, but currently pre-1.0 and not yet hardened with tests or docs, so we recommend a time-boxed evaluation rather than production commitment.
For engineering: bjuppa/eloquent-state-machine v0.1.0 ships what the maintainer intends as the 1.0 API, but with no meaningful test suite or documentation. Treat it as an evaluation candidate: spike it against one real workflow, assess the API for fit, and track the maintainer's documented follow-up work (tests + docs) before we depend on it in production. Decision needed: do we invest in a spike now, or wait for 1.0 with tests and docs?
How can I help you explore Laravel packages today?