PHP code example of mothership / state_machine
1. Go to this page and download the library: Download mothership/state_machine library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mothership / state_machine example snippets
unit --coverage-text
/src/Examples/Simple/SimpleStateMachine.php
$stateMachine = new \Mothership\StateMachine\Examples\Simple('workflow.yml');
$stateMachine->run();
$state_machine = new StateMachine();
$state_machine = $state_machine->renderGraph($path, false);