PHPackages                             workup/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. workup/state-machine

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

workup/state-machine
====================

Winzou State Machine service provider for Laravel

v3.4.4.001(2y ago)02531MITPHPPHP ^8.1

Since Jan 14Pushed 2y agoCompare

[ Source](https://github.com/workupsrl/state-machine)[ Packagist](https://packagist.org/packages/workup/state-machine)[ Docs](https://github.com/workupsrl/state-machine)[ RSS](/packages/workup-state-machine/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (6)Versions (34)Used By (0)

Winzou State Machine service provider for Laravel
=================================================

[](#winzou-state-machine-service-provider-for-laravel)

This is a Laravel service provider for [winzou/state-machine](https://github.com/winzou/state-machine). It provides dependency injection for the `StateMachineFactory`. You can also use Laravel's service container to resolve class methods for the callbacks. A facade is also available for convenience.

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

[](#installation)

You can install the package via composer.

Then require the package using the command-line interface:

```
composer require workup/state-machine
```

### Versions

[](#versions)

If you need to install this package in older Laravel installations, use the table below to find a compatible version.

PackageLaravelPHP**^3.0**`^7.0 - ^11.0``^7.2.5`**^2.0**`5.5.* - ^6.0``^7.0`**^1.0**`5.1.* - 5.8.*``^5.5.9 | ^7.0`Since version 5.5, Laravel uses package auto-discovery, so you don't need to manually add the ServiceProvider and the facade. If you don't use auto-discovery or you are using an older version, add the service provider and the facade in config/app.php.

```
