Download the PHP package mariojgt/witchcraft without Composer
On this page you can find all versions of the php package mariojgt/witchcraft. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package witchcraft
Witchcraft: Laravel Workflow Automation
Create powerful workflows with a visual drag-and-drop editor. Perfect for automating business processes, data processing, and API integrations.
✨ Features
- 🎨 Visual Workflow Editor - Drag, drop, and connect nodes
- 🔄 Version Control - Automatic versioning with rollback support
- 🛡️ Protected Workflows - Mark workflows as non-deletable
- 📊 Simulation History - Track all workflow executions
- 🔗 Easy Integration - Simple helper functions for triggering workflows
- 🎯 Smart Triggers - Execute workflows programmatically with unique codes
🚀 Quick Start
Install
Setup
Use
📝 Simple Usage Examples
Basic Workflow Execution
Check if Workflow Exists
Get Workflow Information
🎯 Built-in Node Types
| Node Type | Purpose | Example Use |
|---|---|---|
| Model Select | Database triggers | Run workflow when user is created |
| Condition | Decision logic | If status = "active" then... |
| API Request | External calls | Send data to third-party service |
| Artisan Command | Laravel commands | Clear cache, send emails |
| Notification | Alerts & messages | Send user notifications |
| Variable | Data manipulation | Store and modify values |
| JSON Extract | Data parsing | Extract values from API responses |
🔧 Advanced Features
Automatic Versioning
- ✅ Auto-save versions when workflow structure changes
- ✅ Version history with search and filtering
- ✅ One-click restore to any previous version
- ✅ Version notes to track what changed
Workflow Protection
Simulation Tracking
- 📊 Complete execution logs for every run
- 📈 Success/failure statistics
- ⏱️ Performance metrics and duration tracking
- 📋 Downloadable execution reports
Smart Trigger Codes
🎨 Creating Custom Nodes
1. Generate Node
2. Create Handler
3. Build Assets
🔗 Model Integration
Add workflow triggers to your models:
⚙️ Configuration
Vite Setup (vite.config.js)
🎯 Real-World Examples
E-commerce Order Processing
User Onboarding
Data Backup
🛠️ Helper Functions Reference
| Function | Purpose | Returns |
|---|---|---|
witchcraft_trigger($code, $data) |
Execute workflow | Mixed result |
witchcraft_safe_trigger($code, $data) |
Execute with error handling | Array with success/error |
witchcraft_exists($code) |
Check if workflow exists | Boolean |
witchcraft_info($code) |
Get workflow details | Array with metadata |
witchcraft_execute($code, $data) |
Alias for trigger | Mixed result |
witchcraft_run($code, $data) |
Alias for trigger | Mixed result |
📊 Workflow Management
Access Editor
Key Features
- 🎨 Drag & drop node creation
- 🔗 Visual connections between nodes
- 💾 Auto-save with version control
- 🔍 Search & filter workflows
- 📁 Category organization
- 🛡️ Protection settings
- 📈 Execution history
📚 Advanced Usage
Conditional Workflows
Create complex decision trees with condition nodes:
API Integration Workflows
Batch Processing
🤝 Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
📄 License
This package is open-sourced software licensed under the MIT license.
👨💻 Credits
- Mario Tarosso
- All Contributors
🚀 Ready to automate your workflows?
All versions of witchcraft with dependencies
PHP Build Version
Package Version
The package mariojgt/witchcraft contains the following files
Loading the files please wait ...
