winzou/state-machine
Lightweight PHP state machine library. Define graphs with states, transitions, and guard/before/after callbacks, then apply and validate transitions on your domain objects. Supports multiple graphs per object and configurable state property paths.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| winzou/state-machine-bundle | 0.87 | Lightweight PHP/Symfony bundle for defining state machines on your domain objects. Configure graphs with states, transitions, and optional guard/before/after callbacks via YAML/XML/PHP, then apply and test transitions without hard-coded state logic. | 338 | 343 | 43 | 98K | 6 | 18.6 | 38.1 | MIT | 7 months ago | |
| mhqady/flowra | 0.84 | Flowra is a database-driven workflow and state machine engine for Laravel. Define typed states, guarded transitions, and actions; persist each model's current state with a full transition audit history. Includes generators, query scopes, bulk transitions, and diagram export. | 2 | 2 | 1 | 141 | 0 | 14.9 | 25.8 | — | 3 months ago | |
| kphoen/doctrine-state-machine-bundle | 0.84 | Symfony bundle that integrates the Doctrine finite state machine library, letting you define state machines and transitions in configuration and expose them as container services for clean, testable workflow logic in your PHP applications. | 45 | 48 | 19 | 99 | 5 | 2.5 | 8.4 | — | 10 years ago | |
| spatie/laravel-model-states | 0.84 | Add state behaviour to Eloquent models by combining the state pattern and state machines. Define each state as a class, cast it on your model, handle database serialization automatically, and transition between states easily. | 1,307 | 1,309 | 107 | 659K | 0 | 40.2 | 43.9 | MIT | 2 days ago | |
| zerodahero/laravel-workflow | 0.84 | Integrate the Symfony Workflow component into Laravel. Define workflows and state machines in config, attach them to Eloquent models, and transition between places with a simple facade. Supports Laravel 10-13. | 204 | 206 | 45 | 24K | 2 | 29.8 | 33.8 | MIT | 1 month ago | |
| norotaro/enumata | 0.83 | — | 3 | 4 | 1 | 303 | 1 | 2.9 | 26.0 | MIT | 1 year ago | |
| sebdesign/laravel-state-machine | 0.83 | A lightweight Laravel package for adding state machines to Eloquent models. Define states, transitions, and guards, then move records safely between states with validation, events, and clear exceptions. Integrates cleanly with Laravel and supports custom classes. | 341 | — | 59 | — | 2 | 12.1 | 0.4 | MIT | 7 months ago | |
| iotron/laravel-state-machine | 0.83 | A Laravel package for building state machines around Eloquent models. Define states and allowed transitions, guard status changes, and keep workflow logic organized, explicit, and easy to test. Helps replace scattered status checks with a clear, maintainable transition map. | 4 | 4 | 0 | 73 | 0 | 16.1 | 18.8 | MIT | 2 months ago | |
| hyn/state-machine | 0.83 | A lightweight state machine for Laravel that lets you define states and transitions on Eloquent models, validate and apply transitions cleanly, and keep business logic out of your controllers. | 16 | 16 | 1 | 3 | 0 | 0.1 | 1.0 | — | — | |
| caner/state-machine | 0.83 | A lightweight Laravel state machine for Eloquent models. Define states, transitions and guards, apply them safely with validation, events and history, and keep workflow logic out of controllers and models. Ideal for approvals, orders and multi-step processes. | 51 | 51 | 2 | 0 | 0 | 0.3 | — | MIT | 4 years ago | |
| aw-studio/laravel-states | 0.83 | Laravel States adds state machine support to Eloquent models, letting you define states, transitions, and guards cleanly. Track model status, control allowed changes, and keep your workflows predictable without extra boilerplate. | 44 | 44 | 0 | 33 | 1 | 19.9 | 3.9 | — | 2 weeks ago | |
| juststeveking/state-machine | 0.82 | A lightweight state machine for Laravel and PHP applications. Define states and allowed transitions, then move models or objects through workflows with clear, testable rules and guard conditions. | 2 | 2 | 0 | 316 | 0 | 10.7 | 30.6 | MIT | 5 months ago | |
| jobmetric/laravel-state-machine | 0.82 | jobmetric/laravel-state-machine adds finite state machines to Laravel applications. Define states and transitions for Eloquent models, enforce guards, trigger events and callbacks, and manage safe state changes with a clean, configurable API. | 6 | — | 1 | — | 0 | 0.4 | — | MIT | 1 year ago | |
| bastsys/state-bundle | 0.82 | — | 0 | 0 | 0 | 0 | 0 | 1.5 | — | — | 5 years ago | |
| teknoo/states | 0.82 | Teknoo States provides a simple, extensible finite state machine implementation for PHP. Model objects with states and transitions, define allowed changes, and trigger callbacks on entry, exit, or transition events—useful for workflows, order processing, and status management. | 10 | 11 | 2 | 775 | 0 | 0.1 | 25.6 | BSD-3-Clause | — | |
| ringierimu/state-workflow | 0.82 | State workflow for Laravel Eloquent models: define states and allowed transitions, guard changes with custom rules, and react to transitions via events. Centralizes business status logic so it stays clean, testable, and consistent across your app instead of scattered controllers. | 31 | 34 | 12 | 826 | 0 | 7.4 | 20.9 | MIT | 8 months ago | |
| samuel4x4/state-machine-bundle | 0.82 | samuel4x4/state-machine-bundle provides a simple state machine for PHP/Laravel apps: define states and transitions, guard changes, and hook actions into workflow updates. Keep status logic centralized, explicit, and testable instead of scattering conditionals across models. | 0 | 0 | 0 | 0 | 0 | 5.8 | — | MIT | 8 months ago | |
| madmind/state-machine-visualization-bundle | 0.81 | Visualize state machines and workflows in your Symfony app with clear, auto-generated diagrams of states, transitions, and places. This bundle makes it easy to debug, document, and explain workflow logic, helping your team understand complex state transitions at a glance. | 12 | 12 | 1 | 986 | 0 | 0.1 | 26.1 | MIT | 3 years ago | |
| kphoen/doctrine-state-machine | 0.80 | Bridges Symfony's StateMachine component with Doctrine ORM, letting entity state transitions be validated and applied automatically during persistence. Configure a state machine for an entity and Doctrine listeners enforce allowed transitions, keeping workflow state consistent and domain models clea... | 14 | 14 | 14 | 110 | 0 | 0.5 | 12.7 | MIT | 11 years ago | |
| sylius/state-machine-abstraction | 0.80 | Sylius State Machine Abstraction provides a lightweight PHP interface for state machines, decoupling state and transition logic from any specific implementation. It defines the contracts needed to build or integrate state machines into Sylius and other PHP applications. | 0 | 0 | 1 | 8K | 0 | 0.0 | 53.6 | MIT | — |
How can I help you explore Laravel packages today?