2017 © Pedro Peláez
 

library fsm

Phwoolcon Finite State Machine

image

phwoolcon/fsm

Phwoolcon Finite State Machine

  • Tuesday, July 12, 2016
  • by Fishdrowned
  • Repository
  • 1 Watchers
  • 7 Stars
  • 449 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 7 % Grown

The README.md

Phwoolcon Finite State Machine

Build Status Code Coverage License, (*1)

See the definition of Finite-state machine on Wikipedia, (*2)

Installation

Add this library to your project by composer:, (*3)

composer require "phwoolcon/fsm"

Usage

<?php
use Phwoolcon\Fsm\StateMachine;
$fsm = StateMachine::create([
    'foo' => [
        'process' => 'bar',
    ],
    'bar' => [
        'process2' => 'hello',
        'process3' => 'world',
    ],
]);
echo $fsm->getCurrentState();   // prints foo
echo $fsm->next();              // prints bar
echo $fsm->do('process2');      // prints hello

The Versions

12/07 2016

dev-master

9999999-dev

Phwoolcon Finite State Machine

  Sources   Download

Apache-2.0

The Requires

  • php >=5.5.0

 

state machine fsm phwoolcon

12/07 2016

v1.0.2

1.0.2.0

Phwoolcon Finite State Machine

  Sources   Download

Apache-2.0

The Requires

  • php >=5.5.0

 

state machine fsm phwoolcon

12/07 2016

v1.0.1

1.0.1.0

Phwoolcon Finite State Machine

  Sources   Download

Apache-2.0

The Requires

  • php >=5.5.0

 

state machine fsm phwoolcon

12/07 2016

v1.0.0

1.0.0.0

Phwoolcon Finite State Machine

  Sources   Download

Apache-2.0

The Requires

  • php >=5.5.0

 

state machine fsm phwoolcon