PHPackages                             zerodahero/laravel-workflow - 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. zerodahero/laravel-workflow

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

zerodahero/laravel-workflow
===========================

Integerate Symfony Workflow component into Laravel.

v6.2.0(9mo ago)204815.2k↓10.4%42[2 PRs](https://github.com/zerodahero/laravel-workflow/pulls)4MITPHPPHP ^8.1|^8.2|^8.3|^8.4CI passing

Since Feb 13Pushed 5mo ago5 watchersCompare

[ Source](https://github.com/zerodahero/laravel-workflow)[ Packagist](https://packagist.org/packages/zerodahero/laravel-workflow)[ GitHub Sponsors](https://github.com/zerodahero)[ RSS](/packages/zerodahero-laravel-workflow/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (10)Dependencies (12)Versions (44)Used By (4)

Laravel workflow
================

[](#laravel-workflow)

Use the Symfony Workflow component in Laravel

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

[](#installation)

```
composer require zerodahero/laravel-workflow
```

Laravel Support
---------------

[](#laravel-support)

Package VersionLaravel Version Support^2.05.x^3.07.x^3.28.x^4.09.x, 10.x^5.010.x, 11.x^6.010.x, 11.x^6.110.x, 11.x, 12.xUpgrade from v5 to v6
---------------------

[](#upgrade-from-v5-to-v6)

Version 6 drops support for PHP 8.0 and Laravel 9.

Upgrade from v4 to v5
---------------------

[](#upgrade-from-v4-to-v5)

The primary change is to the PHP and Laravel version, which only PHP 8.0, 8.1, 8.2 and Laravel 9, 10, and 11 are supported in this version.

Upgrade from v3 to v4
---------------------

[](#upgrade-from-v3-to-v4)

The primary change is to the PHP and Laravel version, which only PHP 8.0, 8.1 and Laravel 9 are supported in this version. If you required to use the older version, use version 3.4.

Upgrade from v2 to v3
---------------------

[](#upgrade-from-v2-to-v3)

The biggest changes from v2 to v3 are the dependencies. To match the Symfony v5 components, the Laravel version is raised to v7. If you're on Laravel v6 or earlier, you should continue to use the v2 releases of this package.

To match the changes in the Symfony v5 workflow component, the "arguments" config option has been changed to "property". This describes the property on the model the workflow ties to (in most circumstances, you can simply change the key name from "arguments" to "property", and set to a string instead of the previous array).

Also, the "initial\_place" key has been changed to "initial\_places" to align with the Symfony component as well.

### Non-package Discovery

[](#non-package-discovery)

If you aren't using package discovery:

Add a ServiceProvider to your providers array in `config/app.php`:

```
