madbox-99/filament-form-builder
Composer 安装命令:
composer require madbox-99/filament-form-builder
包简介
Embeddable form builder for Laravel with a Filament v5 admin panel. Drop a JS snippet into any HTML page and collect form submissions through the Filament admin.
关键字:
README 文档
README
Embeddable form builder for Laravel with a Filament v5 admin panel.
Drop a <script> tag into any HTML page (WordPress, static site, SPA) and collect form submissions in your Filament admin.
Features
- Filament v5 resources for forms + submissions
- Livewire-powered public form renderer (full page, iframe-friendly embed, or one-liner JS widget)
- Repeater-based field builder in the admin (text, email, phone, number, textarea, select, checkbox, date)
- Per-form submission actions (save to DB, auto-create lead, notify email addresses)
FormSubmissionProcessedevent for app-specific side effects (Lead creation, CRM push, Slack notification...)- Pluggable multi-tenancy — any Eloquent model with a slug column works
- Route-served widget JS with ETag cache busting — no publish step
Installation
composer require madbox-99/filament-form-builder php artisan vendor:publish --tag=filament-form-builder-config php artisan migrate
Set your tenant model in config/filament-form-builder.php:
'tenant_model' => \App\Models\Team::class, 'tenant_foreign_key' => 'team_id',
Register the plugin in your Filament panel provider:
use Madbox99\FilamentFormBuilder\FilamentFormBuilderPlugin; public function panel(Panel $panel): Panel { return $panel->plugins([ FilamentFormBuilderPlugin::make(), ]); }
Embed a form
From the form edit page, copy one of three snippets:
JS widget (recommended — auto-resizes, handles redirects):
<div id="ffb-form-{slug}"></div> <script src="https://your-app.test/forms/embed.js" data-form="{slug}" async></script>
Iframe:
<iframe src="https://your-app.test/embed/forms/{slug}" width="100%" height="600" frameborder="0"></iframe>
Direct link: https://your-app.test/forms/{slug}
App-side integrations via event
The package dispatches Madbox99\FilamentFormBuilder\Events\FormSubmissionProcessed
after every successful submission. Listen to create app-specific records:
use Madbox99\FilamentFormBuilder\Events\FormSubmissionProcessed; Event::listen(FormSubmissionProcessed::class, function (FormSubmissionProcessed $event) { if ($event->actions->createLeadIfHasEmail && !empty($event->formData['email'])) { Lead::create([ 'team_id' => $event->form->team_id, 'email' => $event->formData['email'], // ... ]); } if ($event->actions->notifyEmails !== []) { Notification::route('mail', $event->actions->notifyEmails) ->notify(new FormSubmissionReceived($event->submission)); } });
License
MIT
madbox-99/filament-form-builder 适用场景与选型建议
madbox-99/filament-form-builder 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 294 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 04 月 20 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「wordpress」 「Forms」 「laravel」 「embeddable」 「form-builder」 「filament」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 madbox-99/filament-form-builder 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 madbox-99/filament-form-builder 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 madbox-99/filament-form-builder 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
ConfirmationField is a form field for Atk14 applications. It's like the BooleanField (checkbox) but the ConfirmationField must be ticked.
Field for number with restricted count of digits and decimal places
HTML and form generation
Build forms from schema
A Laravel Filament Forms slug field.
bootstrap select field module implementing http://silviomoreto.github.io/bootstrap-select/
统计信息
- 总下载量: 294
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 38
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-04-20