Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

State Machine Laravel Package

winzou/state-machine

Lightweight PHP state machine library. Define graphs with states, transitions, and guard/before/after callbacks, then apply and validate transitions on your domain objects. Supports multiple graphs per object and configurable state property paths.

View on GitHub
Deep Wiki
Context7
0.4.5

What's Changed

Full Changelog: https://github.com/winzou/state-machine/compare/0.4.4...0.4.5

0.4.4

What's Changed

New Contributors

Full Changelog: https://github.com/winzou/state-machine/compare/0.4.3...0.4.4

0.4.3
0.4.1
0.4.0
0.3.3
0.3.0

Add guards to prevent a transition to happen. Guards are first-class callbacks. Cf. https://github.com/winzou/state-machine/pull/25 for more details.

0.2.3
0.2.2
0.2.1
0.2

The after callbacks had the already updated state instead of the one before the transition.

BC break: TransitionEvent::construct now takes the initial state as a 2nd argument.

0.1.1

Changes in state machine and factory arguments:

  • EventDispatcher as null leads to no event dispatched
  • CallbackFactory as null leads to default factory used

No BC break.

0.1

First release. Should be already usable though.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
make-dev/orca
dmstr/symfony-system-resources-bundle
dmstr/symfony-job-queue-bundle
dmstr/openapi-json-schema-bundle
dmstr/keycloak-security-bundle
dmstr/doctrine-audit-log-bundle
dmstr/api-platform-utils-bundle
dmstr/api-configuration-bundle
chrisdev/ux-components
baks-dev/finances
emuniq/filament-browser-notifications
syriable/filament-translator
hungnm28/livewire-form
wenprise/eloquent
crudly/encrypted
fadion/bouncy
cuci/prototurk-sdk
gos/pubsub-router-bundle
cuci/prototurk-sdk-symfony
clementtalleu/easyadmin-markdown-bundle