PHPackages                             crumbls/state-machine - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. crumbls/state-machine

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

crumbls/state-machine
=====================

A Laravel state machine package with fluent interface configuration

v1.0.0(2mo ago)01MITPHP ^8.2

Since May 6Compare

[ Source](https://github.com/Crumbls/state-machine)[ Packagist](https://packagist.org/packages/crumbls/state-machine)[ RSS](/packages/crumbls-state-machine/feed)WikiDiscussions Synced 3w ago

READMEChangelog (1)Dependencies (9)Versions (2)Used By (0)

Laravel State Machine
=====================

[](#laravel-state-machine)

A Laravel 11+ package that provides a fluent state machine implementation without requiring Eloquent models. Inspired by Spatie's `laravel-model-states` but designed to be model-agnostic.

Installation
------------

[](#installation)

```
composer require crumbls/state-machine
```

Basic Usage
-----------

[](#basic-usage)

### 1. Define Your States

[](#1-define-your-states)

```
