cleaniquecoders/flowstone
Composer 安装命令:
composer require cleaniquecoders/flowstone
包简介
Flowstone - Laravel Workflow Engine with Symfony Workflow Integration
README 文档
README
Flowstone is a powerful Laravel package that integrates the robust Symfony Workflow engine into your Laravel applications. Build sophisticated workflow and state machine systems with database-driven configurations, role-based permissions, and seamless Laravel integration.
🚀 Key Features
- 🔄 Database-Driven Workflows - Configure workflows through the database for runtime flexibility
- 🏛️ Symfony Workflow Integration - Built on the proven Symfony Workflow component
- 👥 Role-Based Permissions - Control who can perform transitions with metadata-driven roles
- 📊 Predefined Status Enum - Ready-to-use workflow states (Draft, Pending, Approved, etc.)
- ⚡ Performance Optimized - Workflow configuration caching and efficient queries
- 🎯 Multiple Workflow Types - Support for both State Machines and Workflows
💡 Why Flowstone?
Laravel-Native Workflow Integration
Unlike Symfony's configuration-based approach, Flowstone uses Laravel traits for better developer experience:
// ✅ Flowstone way - Full IDE support! class Document extends Model implements WorkflowContract { use InteractsWithWorkflow; // Get 50+ workflow methods instantly // IDE autocomplete ✅ | Type hints ✅ | Dynamic workflows ✅ } // ❌ Symfony way - Config-based, no IDE support 'supports' => [App\Models\Document::class], // Hard-coded in config
Benefits:
- ✅ Full IDE Autocomplete - IntelliSense for all workflow methods
- ✅ Type Safety - Compile-time type checking
- ✅ Dynamic Workflows - Choose workflows at runtime
- ✅ Self-Documenting - Just look at the model to see workflow support
- ✅ Better Testing - Mock workflow behavior directly
See detailed comparison in docs.
Table of Contents
Requirements
- PHP: 8.2, 8.3, or 8.4
- Laravel: 10.x, 11.x, or 12.x
- Database: MySQL, PostgreSQL, SQLite, or SQL Server
Version Compatibility
| Flowstone | PHP | Laravel | Symfony Workflow | Livewire |
|---|---|---|---|---|
| 1.3.1+ | 8.2-8.4 | 10.x-12.x | 6.4-7.x | 3.0+ |
| 1.3.0 | 8.4 | 11.x-12.x | 7.3+ | 3.6+ |
Note: Laravel 9 is not supported due to dependency requirements. Laravel 9 reached end-of-life in February 2024.
Installation
Install Flowstone via Composer:
composer require cleaniquecoders/flowstone
Publish and run the migrations:
php artisan vendor:publish --tag="flowstone-migrations"
php artisan migrate
Optionally, publish the configuration file:
php artisan vendor:publish --tag="flowstone-config"
Documentation
Comprehensive documentation is available in the docs/ directory:
- Getting Started - Installation and quick start guide
- Configuration - Configure workflows, UI, and performance
- Usage Guide - Workflows, details, and visual designer
- API Reference - Complete API documentation
Examples
Real-world examples are available in the examples/ directory:
- Bug Tracking - Issue lifecycle management
- Content Publishing - Content approval workflow
- Document Approval - Multi-step approval process
- E-commerce Order - Order fulfillment workflow
- Employee Onboarding - New hire process
Testing
composer test
Contributing
Please see CONTRIBUTING for details.
License
The MIT License (MIT). Please see License File for more information.
cleaniquecoders/flowstone 适用场景与选型建议
cleaniquecoders/flowstone 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.05k 次下载、GitHub Stars 达 5, 最近一次更新时间为 2025 年 10 月 23 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「workflow」 「state machine」 「laravel」 「Cleanique Coders」 「flowstone」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 cleaniquecoders/flowstone 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 cleaniquecoders/flowstone 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 cleaniquecoders/flowstone 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Workflow for NetCommons Plugin
Doctrine implementation of the MetaborStd (Statemachine) for PHP 8.2+
A simple state dropdown field for SilverStripe forms
Workflow logger
A state Machine library for business processes
Metamel Addresses is a polymorphic Laravel package, for address book management. You can add addresses to any eloquent model with ease.
统计信息
- 总下载量: 1.05k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 28
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-10-23
