All Projects → hyn → state-machine

hyn / state-machine

Licence: other
The hyn state machine package is a flexible library that helps you move Eloquent models from States through Transitions while emitting events along the way.

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to state-machine

plug
A collection of pluggable traits for Eloquent (Laravel) models
Stars: ✭ 13 (-7.14%)
Mutual labels:  eloquent
StateBuilder
State machine code generator for C++ and Java.
Stars: ✭ 30 (+114.29%)
Mutual labels:  state-machine
kuafu
This is a tool library that includes log, fsm, state machine...
Stars: ✭ 83 (+492.86%)
Mutual labels:  state-machine
slim-boilerplate
A PHP boilerplate,for a fast API prototyping based on Slim Framework, for start projects with Eloquent ORM, Validation, Auth (JWT), Repositories and Transformers ready
Stars: ✭ 58 (+314.29%)
Mutual labels:  eloquent
React-Machinery
🔥 React Machinery provides a simple to use, component based approach to state machines in react.
Stars: ✭ 104 (+642.86%)
Mutual labels:  state-machine
flviz
FLVIz - Finite Automata Simulator written in QT/Graphviz
Stars: ✭ 36 (+157.14%)
Mutual labels:  state-machine
laravel-simplegrid
A simple component for generating powerful grids with Laravel.
Stars: ✭ 35 (+150%)
Mutual labels:  eloquent
tic-tac-toe
🕹 iOS game - classic Tic Tac Toe with AI and state machines [Swift + SpriteKit + GameplayKit].
Stars: ✭ 60 (+328.57%)
Mutual labels:  state-machine
ordered
Entropy-controlled contexts in Python
Stars: ✭ 36 (+157.14%)
Mutual labels:  state-machine
eloquent-filter
Library to form search criteria through expressions in the query string
Stars: ✭ 23 (+64.29%)
Mutual labels:  eloquent
encryptable
Laravel package for persisting encrypted Model properties, providing decryption when accessed.
Stars: ✭ 26 (+85.71%)
Mutual labels:  eloquent
public
BitDust project source codes : official Public Git repository (mirror on GitHub) : https://bitdust.io
Stars: ✭ 19 (+35.71%)
Mutual labels:  state-machine
laravel-query-inspector
The missing laravel helper that allows you to inspect your eloquent queries with it's bind parameters
Stars: ✭ 59 (+321.43%)
Mutual labels:  eloquent
yieldmachine
Components for State Machines, using Generator Functions
Stars: ✭ 23 (+64.29%)
Mutual labels:  state-machine
hsm
C++ framework library to simplify state-driven code
Stars: ✭ 88 (+528.57%)
Mutual labels:  state-machine
react-transition-state
Zero dependency React transition state machine.
Stars: ✭ 239 (+1607.14%)
Mutual labels:  state-machine
bloc
A predictable state management library that helps implement the BLoC design pattern
Stars: ✭ 12 (-14.29%)
Mutual labels:  state-machine
event-dispatcher
💥 Best events support (symfony/event-dispatcher) to Nette Framework (@nette)
Stars: ✭ 23 (+64.29%)
Mutual labels:  event-dispatcher
acorn-db
Provides Acorn projects with Eloquent Models for WordPress data.
Stars: ✭ 30 (+114.29%)
Mutual labels:  eloquent
serverless-step-functions-offline
Emulate step functions locally when developing your Serverless project
Stars: ✭ 74 (+428.57%)
Mutual labels:  state-machine

State machine

The state machine is a flexible library that helps you move Eloquent models from States through Transitions while emitting events along the way.

Example

Let's say we have a Cat, who does two things, being

In order to become Awake from his initial state being Asleep, the cat has to

Now if we look at the state machine definition we can see the above is perfectly mapped out.

Installation

composer require hyn/state-machine

Read more about installation and configuration on state-machine.readme.io.

Tests

Run the tests with:

vendor/bin/phpunit
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].