cleaniquecoders / flowstone
Flowstone - Laravel Workflow Engine with Symfony Workflow Integration
                                    Fund package maintenance!
                                                                            
                                                                                                                                        Cleanique Coders
                                                                                    
                                                                
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/cleaniquecoders/flowstone
Requires
- php: ^8.4
- cleaniquecoders/laravel-action: ^2.2
- cleaniquecoders/traitify: ^1.2
- illuminate/contracts: ^11.0||^12.0
- spatie/laravel-package-tools: ^1.16
- symfony/workflow: ^7.3
Requires (Dev)
- larastan/larastan: ^3.0
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.8
- orchestra/testbench: ^10.0.0||^9.0.0
- pestphp/pest: ^4.0
- pestphp/pest-plugin-arch: ^4.0
- pestphp/pest-plugin-laravel: ^4.0
- phpstan/extension-installer: ^1.4
- phpstan/phpstan-deprecation-rules: ^2.0
- phpstan/phpstan-phpunit: ^2.0
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
Table of Contents
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 Guide - Detailed setup instructions
- Quick Start Guide - Get up and running quickly
 
- Configuration Reference - Complete configuration options
- Usage Guide - Detailed usage instructions
- API Reference - Complete API documentation
Examples
Real-world examples are available in the examples/ directory:
- Document Approval - Classic approval process with roles
- E-commerce Orders - Order lifecycle management
- Content Publishing - Editorial workflow with scheduling
- Bug Tracking - Issue management for development teams
- Employee Onboarding - HR workflow with multi-department coordination
Each example includes complete implementation with models, controllers, views, and tests.
Testing
composer test
Contributing
Please see CONTRIBUTING for details.
License
The MIT License (MIT). Please see License File for more information.