neos/fusion-form
Composer 安装命令:
composer require neos/fusion-form
包简介
Fusion Form
README 文档
README
Pure fusion form rendering with afx support!
Documentation
Neos.Fusion.Form - Form Rendering and Data Binding
This part covers the rendering of forms that are bound to objects or data and will be submitted to a custom Controller Action.
- Fusion Form Basics
- Tutorials
- Examples
- Fusion Prototypes
- Eel Helpers
Form.Fusion.Form:Runtime - Runtime Single/Multistep Forms with Actions
This part covers the definition of forms with validation and finishing actions via Fusion. Use cases like contact forms and newsletter subscriptions should be implemented like this.
- Runtime Fusion Form Basics
- Tutorials
- Examples
- Fusion Prototypes
- Eel Helpers
- Form Actions
Development targets
- Form rendering in fusion with afx and data binding
- Clear separation of automation and magic for understandable results
- Flexibility:
- Make no assumption about the required markup like classNames
- Allow to override all automatically assigned attributes
- Enable form fragments as fusion components
- Allow to bind multiple objects to a single form
- Enable to create custom controls with
- Respect form elements that are defined as plain html when rendering __trustedProperties
- Convenience:
- Render hidden fields for validation, security and persistence magic
- Provide validation-errors and restore previously submitted values
- Prefix fieldnames with the current request namespace if needed
- Make writing of fusion backend modules easy:
- Create a backend field container with translated labels and error messages
- Adjust field markup inside the field container for the neos-backend
Important Deviations from Fluid Form ViewHelpers
The following deviations are probably the ones fluid developers will stumble over. There are many more deviations but those are breaking concept changes you should be aware of.
- Instead of binding a single
objectadataDataStructure is bound to the form. - Form data-binding is defined via
form.data.object={object}instead ofobjectNameandobject. - Field data-binding is defined vis
field.name="object[title]"with the object name and square brackets for nesting. - Data binding with
propertypath syntax is not supported. - Select options and groups are defined directly as afx
contentand notoptions.
Important deviations from the concepts of the Neos.Form package
- The definitions for form rendering and validation are separated into
contentandschemaof theprocess. - By default the
SingleStepProcessis used as this is the most common case. If you need multiple steps theprocesshas to be altered toMultiStepProcess - Settings, form data and node properties can be used in a unified way via Fusion to define actions and control the process.
- Confirmations are no special feature but can be defined as "step" in a MultiStepProcess
- The concept of finishers is replaced with
actions. - Actions cannot decide to send the user back into the form process.
neos/fusion-form 适用场景与选型建议
neos/fusion-form 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 767.57k 次下载、GitHub Stars 达 19, 最近一次更新时间为 2019 年 10 月 18 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 neos/fusion-form 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 neos/fusion-form 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 767.57k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 19
- 点击次数: 8
- 依赖项目数: 27
- 推荐数: 3
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2019-10-18