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

ActiveLibrary

square-bit/laravel-workflow
===========================

Add workflow support to your Laravel models.

v12.2.2(1mo ago)168↓100%[4 PRs](https://github.com/square-bit/laravel-workflow/pulls)MITPHPPHP ^8.1|^8.2CI passing

Since Sep 5Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/square-bit/laravel-workflow)[ Packagist](https://packagist.org/packages/square-bit/laravel-workflow)[ Docs](https://github.com/square-bit/laravel-workflow)[ RSS](/packages/square-bit-laravel-workflow/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (13)Versions (22)Used By (0)

Add workflow support to your Laravel models.
============================================

[](#add-workflow-support-to-your-laravel-models)

[![Latest Version on Packagist](https://camo.githubusercontent.com/8bb5223a041fefa36c7adb21e51ec5dc5cb935cc49f247a11cf29015667ee52f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7371756172652d6269742f6c61726176656c2d776f726b666c6f772e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/square-bit/laravel-workflow)[![GitHub Tests Action Status](https://camo.githubusercontent.com/c206173b6c503e8b796b0f6b861f716fdcb82ea7b8d2efcba1669c142816a827/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7371756172652d6269742f6c61726176656c2d776f726b666c6f772f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/square-bit/laravel-workflow/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/c2587f13f381bf92d2cc1decd1be82a85947d960a49f75424bbfa824149caadd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7371756172652d6269742f6c61726176656c2d776f726b666c6f772f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/square-bit/laravel-workflow/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/2f8d8714b3bcc444fb714cfe4756fe6e1740275effe84356cba48b5b85c45bc2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7371756172652d6269742f6c61726176656c2d776f726b666c6f772e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/square-bit/laravel-workflow)

Give your models the ability to flow through multiple states.

Features:

- default workflow per model class.
- parallel workflows: each model can transition if more than one workflow, in parallel,
- permissioned transitions.

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

[](#installation)

You can install the package via composer:

```
composer require square-bit/laravel-workflow
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="laravel-workflow-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="laravel-workflow-config"
```

This is the contents of the published config file:

```
return [
];
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="laravel-workflow-views"
```

Usage
-----

[](#usage)

```
// TODO
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Squarebit, Lda](https://github.com/square-bit)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

48

—

FairBetter than 94% of packages

Maintenance90

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 77.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~57 days

Recently: every ~40 days

Total

17

Last Release

56d ago

Major Versions

v0.9.4 → v1.02025-01-19

v1.0 → v12.0.12025-02-25

### Community

Maintainers

![](https://www.gravatar.com/avatar/01faacc649020a16c1cceb7ec2dd2cf579c5de812ee9a88aad11be04e41c54bf?d=identicon)[Squarebit](/maintainers/Squarebit)

---

Top Contributors

[![tiagof](https://avatars.githubusercontent.com/u/1729910?v=4)](https://github.com/tiagof "tiagof (61 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (11 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (7 commits)")

---

Tags

laravelsquare-bitlaravel-workflow

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/square-bit-laravel-workflow/health.svg)

```
[![Health](https://phpackages.com/badges/square-bit-laravel-workflow/health.svg)](https://phpackages.com/packages/square-bit-laravel-workflow)
```

###  Alternatives

[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[binary-cats/laravel-rbac

Laravel enum-backed RBAC extension of spatie/laravel-permission

7730.4k](/packages/binary-cats-laravel-rbac)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[basillangevin/laravel-data-json-schemas

Transforms Spatie Data objects into JSON Schemas with built-in validation

1312.2k1](/packages/basillangevin-laravel-data-json-schemas)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
