Download the PHP package madong/workflow without Composer

On this page you can find all versions of the php package madong/workflow. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package workflow

Madong Workflow

PHP 8.1+ 工作流引擎 | 包名:madong/workflow | 命名空间:madong\workflow

仓库:Gitee · motion-code/workflow-engine · GitHub 镜像 · madong-code/workflow-engine

当前为 v3(包名 madong/workflow);v1(madong/ingenious)与 v2 为历史版本,早期仓库路径 ingenstream/ingenious,已停止演进。

Madong Workflow 是一套基于 PHP 8.1+ OOP 设计的轻量、可扩展工作流引擎(演进自 Ingenious,命名空间与包名已独立)。它能够解析流程设计器导出的 json 流程定义并驱动流程流转,支持决策分支、并行合并、会签、自定义节点、事件、拦截器、模块化、子流程等能力。

✨ 特性

📦 安装

本包未发布到 Packagist,需在项目 composer.json 中配置 VCS 仓库后安装:

GitHub 镜像源:"url": "https://github.com/madong-code/workflow-engine.git"

历史版本:madong/ingenious(v1,旧命名空间 madong\ingenious\*)与 v2 均在早期仓库 ingenstream/ingenious,VCS url 指向该仓库可继续安装旧版;迁移到 v3 需将代码引用替换为 madong\workflow\*。

本地开发可将源码放在 packages/workflow,用 {"type": "path", "url": "./packages/workflow"} 仓库替代(path 优先级高于 vcs)。

环境要求

项目 要求
PHP ^8.1(readonly、enum、命名参数)
Composer 2.x
依赖 php-di/php-di ^7.0、madong/helper ^1.0、monolog/monolog ^2.0|^3.0

🚀 快速开始

🧩 核心概念

概念 说明
流程定义 (ProcessDefine) 设计器导出的 json「图纸」
流程模型 (ProcessModel) 解析后的可执行对象模型
流程实例 (ProcessInstance) 一次具体的流程执行
节点 (NodeModel) 流程步骤(任务/判断/分支等)
边 (TransitionModel) 节点间流转,可带条件表达式
任务 (ProcessTask) 推进到任务节点产生的待办

📐 流程定义规范

流程定义统一 snake_case 字段命名,8 种节点类型(ingenious:start/end/task/decision/fork/join/custom/wfSubProcess)。

类名引用(clazz/assignment_handler/拦截器)使用点号形式(json 不允许 \),引擎自动转为命名空间:

🧰 扩展点

扩展点 机制
自定义节点 clazz 外部类,结果写回 var(类不存在时安全降级)
节点拦截器 pre_interceptors / post_interceptors
AOP 切面 实现 Aspect,按 JoinPoint 织入
事件监听 实现 ProcessEventListener,订阅 EventBus
模块 实现 Module(register/boot/shutdown,依赖排序)
新节点类型 NodeParser + NodeModel + Handler
第三方设计器 实现 DesignerParserInterface

🧪 测试

📚 文档

完整索引见 docs/README.md。

文档 说明
docs/02-引擎API.md Engine 全部公开方法
docs/03-流程定义.md 流程定义 json 规范
docs/01-快速开始.md 最小可运行示例
docs/13-实现指南.md 服务实现与扩展
docs/14-框架基础.md 容器/AOP/事件/模块/表达式

宿主集成参考:MDAdmin 的 workflow 插件(plugin/workflow)已实现全部 15 个服务接口(MySQL 持久化 + 调度 + 消息推送),可作为生产级实现范例。

📄 License

Apache-2.0


All versions of workflow with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
php-di/php-di Version ^7.0
madong/helper Version ^1.0
monolog/monolog Version ^2.0|^3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package madong/workflow contains the following files

Loading the files please wait ...