2017 © Pedro Peláez
 

library statemachine-example

Example statemachine from my talk and slides

image

metabor/statemachine-example

Example statemachine from my talk and slides

  • Thursday, April 30, 2015
  • by Metabor
  • Repository
  • 3 Watchers
  • 5 Stars
  • 61 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Statemachine-Example

Implementation of the metabor/statemachine, (*1)

What's inside?

The example from my talk is in the namespace Example and the slides (in german) in the docs directory. In the namespace MetaborStd are abstract types defined. These are exemplified implemented in the namespace Metabor., (*2)

1) Installing

If you don't have Composer yet, download it following the instructions on http://getcomposer.org/ or just run the following command:, (*3)

$ curl -s http://getcomposer.org/installer | php`

Then, use the create-project command to generate the statemachine-example project:, (*4)

$ php composer.phar create-project metabor/statemachine-example:dev-master path/to/install`

Composer will install it and all its dependencies under the path/to/install directory., (*5)

Download an Archive File

You can also download an archive and unpack it somewhere under your web server root directory., (*6)

You also need to install all the necessary dependencies. Download composer (see above) and run the following command:, (*7)

$ php composer.phar install`

2) Run the example project

As a starting point I recommend the index.php, (*8)

You can run it either from the command line:, (*9)

$ php index.php`

Or by using a webserver. If you run PHP 5.4 or higher you can use the builtin webserver:, (*10)

$ php -S localhost:8000 -t path/to/install`

You can now access it in the webbrowser with http://localhost:8000/index.php., (*11)

To display the process a a graph, you'll have to install GraphViz (dot executable). Users of Debian/Ubuntu-based distributions may simply invoke sudo apt-get install graphviz, Windows users have to download GraphViZ for Windows and remaining users should install from GraphViz homepage., (*12)

You can now access the two processes with the get parameter "process": http://localhost:8000/graph.php?process=prepayment http://localhost:8000/graph.php?process=postpayment in the webbrowser., (*13)

Have fun and play with the example by changing it ;), (*14)

All Metabor libraries are released under the MIT license., (*15)

Enjoy!, (*16)

The Versions

30/04 2015

dev-master

9999999-dev

Example statemachine from my talk and slides

  Sources   Download

MIT

The Requires

 

by Oliver Tischlinger

statemachine example state machine

30/04 2015

v1.1.2

1.1.2.0

Example statemachine from my talk and slides

  Sources   Download

MIT

The Requires

 

by Oliver Tischlinger

statemachine example state machine