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

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

composerdelivery/laravel-state-machine
======================================

Winzou State Machine service provider for Laravel

3.0.3(6y ago)0309MITPHPPHP ^7.2.5

Since Jan 14Pushed 6y agoCompare

[ Source](https://github.com/ComposerDelivery/laravel-state-machine)[ Packagist](https://packagist.org/packages/composerdelivery/laravel-state-machine)[ Docs](https://github.com/sebdesign/laravel-state-machine)[ RSS](/packages/composerdelivery-laravel-state-machine/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (6)Versions (26)Used By (0)

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

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

[![Latest Version on Packagist](https://camo.githubusercontent.com/c3b85efc983cdc58e0e84685e6dd980017d7487daf874bbaa814a2264bd2b111/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73656264657369676e2f6c61726176656c2d73746174652d6d616368696e652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sebdesign/laravel-state-machine)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/1889ec0118dca4c45b659b7a1634b165ae0e943d5ddb1976fbe43661aab446a2/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f73656264657369676e2f6c61726176656c2d73746174652d6d616368696e652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/sebdesign/laravel-state-machine)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/e2e0e015585dcfed2440ad910a8854c4f8a0fdc31c9d0450f2020c2108d9f348/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f73656264657369676e2f6c61726176656c2d73746174652d6d616368696e652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/sebdesign/laravel-state-machine/?branch=master)[![StyleCI](https://camo.githubusercontent.com/d1a542b39e28fa09806684fb98eea525275608fa30bcf8b8a86af791699f121d/68747470733a2f2f7374796c6563692e696f2f7265706f732f37383839333335362f736869656c643f7374796c653d666c61742d737175617265)](https://styleci.io/repos/78893356)

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. This package requires Laravel 7.0 or higher.

In your composer.json, add the following section:

```
"repositories": [
    {
        "type": "vcs",
        "url": "https://github.com/sebdesign/state-machine"
    }
]
```

Then require the package using the command-line interface:

```
composer require sebdesign/laravel-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``^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.

```
