PHPackages                             zxin/think-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. zxin/think-workflow

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

zxin/think-workflow
===================

Integerate Symfony Workflow component into Thinkphp.

03PHP

Since Feb 16Pushed 2y agoCompare

[ Source](https://github.com/NHZEX/think-workflow)[ Packagist](https://packagist.org/packages/zxin/think-workflow)[ RSS](/packages/zxin-think-workflow/feed)WikiDiscussions dev-tp Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Laravel workflow [![Build Status](https://camo.githubusercontent.com/d347b564b115d4160b47b6c9b400bcbaef15c90c271ab7fba0aefcea3448d2db/68747470733a2f2f7472617669732d63692e636f6d2f7a65726f64616865726f2f6c61726176656c2d776f726b666c6f772e7376673f6272616e63683d646576656c6f70)](https://travis-ci.org/zerodahero/laravel-workflow)
===================================================================================================================================================================================================================================================================================================================================

[](#laravel-workflow-)

⚠️ Looking for help maintaining!
--------------------------------

[](#warning-looking-for-help-maintaining)

It's been several years since I've actually used this package in a project. It's relatively low maintenance since it's mostly just an adapter for the Symfony component. It's been harder and harder to find time to spend on this project, so I'm looking for help in maintaining it, or if there's a good fit, to take over the package entirely.

---

This is a fork from [brexis/laravel-workflow](https://github.com/brexis/laravel-workflow). My current needs for this package are a bit more bleeding-edge than seem to be maintainable by the other packages. Massive kudos to brexis for the original work and adaptation on this.

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.xUpgrade from v3 to v4
---------------------

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

The changes 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, do take from 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`:

```
