Download the PHP package ajthenewguy/php7-machines without Composer
On this page you can find all versions of the php package ajthenewguy/php7-machines. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download ajthenewguy/php7-machines
More information about ajthenewguy/php7-machines
Files in ajthenewguy/php7-machines
Download ajthenewguy/php7-machines
More information about ajthenewguy/php7-machines
Files in ajthenewguy/php7-machines
Vendor ajthenewguy
Package php7-machines
Short Description Implementation of a finite state machine in PHP7
License MIT
Package php7-machines
Short Description Implementation of a finite state machine in PHP7
License MIT
Please rate this library. Is it a good library?
Informations about the package php7-machines
php7-machines
Implementation of a finite state machine in PHP7.
Usage
A turnstile abstraction:
use Machines\State;
use Machines\StateMachine;
use Machines\Transition;
$Locked = new State('Locked');
$Unlocked = new State('Unlocked');
$Locked->setTransitions([
new Transition(new MatchAcceptor('coin'), $Unlocked)
]);
$Unlocked->setTransitions([
new Transition(new MatchAcceptor('push'), $Locked)
]);
$machine = new StateMachine([$Locked, $Unlocked]);
$machine->input('coin');
$machine->input('push');
All versions of php7-machines with dependencies
PHP Build Version
Package Version
The package ajthenewguy/php7-machines contains the following files
Loading the files please wait ....