定制 getartisanflow/wireflow 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

getartisanflow/wireflow

Composer 安装命令:

composer require getartisanflow/wireflow

包简介

Livewire components for AlpineFlow — build interactive flow diagrams in Laravel.

README 文档

README

Latest Version on Packagist License

Livewire components for AlpineFlow — build interactive flow diagrams in Laravel with zero JavaScript.

Install

composer require getartisanflow/wireflow
php artisan wireflow:install

Quick Start

// In your Livewire component
use ArtisanFlow\WireFlow\Concerns\WithWireFlow;

class MyFlowEditor extends Component
{
    use WithWireFlow;

    public array $nodes = [
        ['id' => '1', 'position' => ['x' => 0, 'y' => 0], 'data' => ['label' => 'Start']],
        ['id' => '2', 'position' => ['x' => 200, 'y' => 100], 'data' => ['label' => 'End']],
    ];

    public array $edges = [
        ['id' => 'e1', 'source' => '1', 'target' => '2'],
    ];
}
<x-flow :nodes="$nodes" :edges="$edges">
    <x-slot:node>
        <div x-flow-handle:target.top></div>
        <span x-text="node.data.label"></span>
        <div x-flow-handle:source.bottom></div>
    </x-slot:node>
</x-flow>

Features

  • 12 Blade components matching AlpineFlow directives: <x-flow>, <x-flow-handle>, <x-flow-panel>, <x-flow-toolbar>, <x-flow-drag-handle>, <x-flow-resizer>, and more
  • WithWireFlow trait for Livewire components with 50+ flow methods
  • Three sync modes: static, entangled, and collab
  • WireFlow::js() for client-side JavaScript callbacks
  • Server-side connection validation via @connect events
  • Bundled AlpineFlow assets — no npm install required
  • Artisan install command (php artisan wireflow:install)
  • Publishable configuration with theme support (default, flux, structural)
  • Collaboration support with ReverbProvider
  • Livewire 3 and 4 compatible
  • Laravel 11, 12, and 13 compatible

Configuration

php artisan vendor:publish --tag=wireflow-config
// config/wireflow.php
return [
    'theme' => 'default', // 'default', 'flux', or 'structural'
];

Acknowledgments

WireFlow is built on top of AlpineFlow, which was inspired by React Flow and its core architecture. Special thanks to the React Flow team for pioneering the open-source node-based UI space.

Follow the journey of building AlpineFlow and WireFlow at zachiler.dev.

Author

Created by Zac Hiler.

License

MIT

统计信息

  • 总下载量: 4.26k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 88
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 88
  • Watchers: 3
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-04-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固