avnsh1111/filament-dynamic-form-builder
Composer 安装命令:
composer require avnsh1111/filament-dynamic-form-builder
包简介
Filament v4 plugin: fully functional dynamic form builder (create, render, collect submissions).
README 文档
README
A Filament v4 plugin that lets you design dynamic forms, render them anywhere, store submissions, and send email notifications.
Features
- Visual form designer using Filament's
Builderfield (text, textarea, select, radio, checkbox, toggle, number, date-time, file upload, rich editor). - Form sections and layout control - create organized forms with sections and flexible field layouts.
- Custom HTML attributes - add custom attributes to any form field for advanced styling and behavior.
- Email notifications - send form submissions to multiple recipients with customizable templates.
- Runtime renderer (
<livewire:av-dynamic-form slug="..." />) that converts saved schema to Filament form components on the fly. - Submission storage, basic spam honeypot, and per-form success message.
- Filament Resources to manage Forms and Entries from your panel.
- Publishable views, config, routes, and migrations.
- Asset registration via Filament Asset Manager (v4).
Install
composer require avnsh1111/filament-dynamic-form-builder php artisan vendor:publish --tag=filament-dfb-config php artisan vendor:publish --tag=filament-dfb-migrations php artisan migrate php artisan filament:assets
Register in your panel provider:
use Avnsh1111\FilamentDynamicFormBuilder\DynamicFormBuilderPlugin; public function panel(\Filament\Panel $panel): \Filament\Panel { return $panel ->plugin(DynamicFormBuilderPlugin::make() ->navigationGroup('Content') ->navigationIcon('heroicon-o-rectangle-stack')); }
Render a form (frontend or anywhere Blade can run Livewire):
<livewire:av-dynamic-form slug="contact-us" />
Config
See config/filament-dfb.php for route prefix, middleware, spam honeypot field name, email settings, etc.
Advanced Features
Form Sections and Layouts
You can now organize your forms with sections and control the layout of fields:
- Sections - Create sections to organize your form fields into logical groups
- Collapsible Sections - Make sections collapsible for better user experience with longer forms
- Layout Controls - Specify fields per row (1, 2, 3, or 4) for each section
- Field Column Spans - Control field widths with column span settings
Custom HTML Attributes
Add custom HTML attributes to any form field:
- Data Attributes - Add data attributes for JavaScript integrations
- CSS Classes - Add custom CSS classes for styling
- ARIA Attributes - Add accessibility attributes
- Any HTML Attribute - Any key-value pair can be added as an attribute
Email Notifications
Configure email notifications for form submissions:
- Multiple Recipients - Send notifications to multiple email addresses
- Custom Templates - Create custom email templates with form field tokens
- Dynamic Subject Lines - Use form field values in email subjects
- Copy to Submitter - Optionally send a copy of the submission to the form submitter
Using Field Tokens in Templates
In both subject lines and email templates, you can use field tokens in the format {field_name}:
Thank you for contacting us, {name}!
We've received your message and will respond to {email} shortly.
Your message:
{message}
Contributing
Contributions are welcome. Please feel free to submit a Pull Request.
License
MIT
avnsh1111/filament-dynamic-form-builder 适用场景与选型建议
avnsh1111/filament-dynamic-form-builder 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 124 次下载、GitHub Stars 达 2, 最近一次更新时间为 2025 年 08 月 25 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「plugin」 「Forms」 「builder」 「laravel」 「livewire」 「filament」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 avnsh1111/filament-dynamic-form-builder 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 avnsh1111/filament-dynamic-form-builder 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 avnsh1111/filament-dynamic-form-builder 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
CakePHP 4.x AdminLTE Theme.
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
A Sphinx Query Builder extension for the Laravel Database package
Anax Database Active Record module for model classes.
HTML and form generation
统计信息
- 总下载量: 124
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 16
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-08-25