netzmacht/workflow
Composer 安装命令:
composer require netzmacht/workflow
包简介
Workflow library
关键字:
README 文档
README
This is a framework independent workflow library. It provides an step-transition based workflow implementation for processing entities through its life cycle.
Due to its data format and framework independence it does not run as a standalone workflow library. The entity/data implementation and input processing via forms have to be implemented. This workflow library is more a skeleton for your workflow requirements.
Features
The main concept
- An entity processes different steps in its lifecycle.
- The process between two steps is called Transition.
- A transition can depend on conditions which determine if the transition is available.
- Each transition contains a list of actions which are performed to reach the next step.
- Actions can require additional user input to perform the transition.
- User input are handled by a form.
Workflow items
- The Item wraps the entity to provide workflow related information.
- It knows the current state and the whole state history.
- Due to the flexibility of the data structure the EntityId is used to identify an entity.
Worfklow
- An workflow is defined for a specific entities from a specific data provider.
- The workflow is the definition of multiple steps and their transitions.
- A workflow always has one start transition.
- It can have multiple end transitions.
Manager
- There can be multiple workflow definitions for the same data provider.
- The manager selects the matching workflow and creates the transition handler.
- At the moment an item can only be in one workflow.
Permissions
- Transitions and steps can can be limited to an permission.
- Checking the permission and organizing them is part of the current implementation.
More features
- Collection based repositories.
- Transaction save transitions.
- Flexible config system for workflows, steps and transitions.
Requirements
This library requires at least PHP 7.1.
Changelog
See the CHANGELOG.md
Example
You may have a look at the examples.
A concrete implementation is available as integration for CMS Contao netzmacht/contao-workflow.
Credits
This library is heavenly inspired by the great workflow implementation of orocrm plattform and got some concepts from the LexikWorkflowBundle.
netzmacht/workflow 适用场景与选型建议
netzmacht/workflow 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 865 次下载、GitHub Stars 达 37, 最近一次更新时间为 2014 年 11 月 21 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「workflow」 「states」 「transition」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 netzmacht/workflow 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 netzmacht/workflow 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 netzmacht/workflow 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
simple state machine with annotations for PHP, inspired by AASM known as a Ruby state machine.
Workflow for NetCommons Plugin
A simple PHP7.2+ Finite State Machine
PHP extension with Brazilian states and formats for CPF, CNPJ and ZIP
A simple PHP class for United States Postal Service (USPS) addresses
Workflow logger
统计信息
- 总下载量: 865
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 37
- 点击次数: 17
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0-or-later
- 更新时间: 2014-11-21