metabor/statemachine-example 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

metabor/statemachine-example

Composer 安装命令:

composer require metabor/statemachine-example

包简介

Example statemachine from my talk and slides

README 文档

README

Implementation of the metabor/statemachine

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.

  1. Installing

Use Composer (recommended)

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

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

Then, use the create-project command to generate the statemachine-example project:

$ 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.

Download an Archive File

You can also download an archive and unpack it somewhere under your web server root directory.

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

$ php composer.phar install`
  1. Run the example project

As a starting point I recommend the index.php

You can run it either from the command line:

$ php index.php`

Or by using a webserver. If you run PHP 5.4 or higher you can use the builtin webserver:

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

You can now access it in the webbrowser with http://localhost:8000/index.php.

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.

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.

Have fun and play with the example by changing it ;)

All Metabor libraries are released under the MIT license.

Enjoy!

统计信息

  • 总下载量: 71
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 5
  • Watchers: 3
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-06-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固