mmx/forms
Composer 安装命令:
composer require mmx/forms
包简介
Modern forms for MODX 3
README 文档
README
This extra is part of MMX initiative - the Modern MODX approach.
The Vueform integration to build and process any kind of forms.
Features
- Convenient way to create forms in manager by specifying the schema.
- You can use free Vueform Builder to generate a form and export ready schema.
- Optional sending of emails to any amount of addresses with custom chunks.
- 3 types of action on form submission: reset, redirect and show custom message.
- All form submissions and emails are saved in database.
Dependencies
This package requires mmxDatabase to work with MODX database using Eloquent models.
The mmx/database dependency will be downloaded automatically by Composer.
Prepare
This package can be installed only with Composer.
If you are still not using Composer with MODX 3, just download the composer.json of your version:
cd /to/modx/root/
wget https://raw.githubusercontent.com/modxcms/revolution/v3.0.4-pl/composer.json
Then run composer update and you are ready to install the mmx packages.
Install
composer require mmx/forms --update-no-dev
composer exec mmx-forms install
Update
composer update mmx/forms --no-dev
composer exec mmx-forms install
Changes will be described on repository Releases page. Don't forget to subscribe for updates!
Remove
composer exec mmx-forms remove
composer remove mmx/forms
How to use
- Create new forms in
/manager/?a=home&namespace=mmx-formssection. - Call the
mmxFormssnippet on any MODX page with id of form:
[[!mmxForms?id=`1`]]
Snippet should only be called without caching!
- Enjoy!
Styling
Snippet will load built-in CSS based on Bootstrap 5 by default. You can disable this behaviour by noCSS param.
[[!mmxForms?id=`1`&noCSS=`1`]]
Better way is to change the CSS variables, for example:
<style> .mmx-forms * { --vf-primary: red !important; } </style>
You can see which variables are used by the form and change them.
Nota bene!
Project is still under development, do not hesitate to use issues if you have any.
mmx/forms 适用场景与选型建议
mmx/forms 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 199 次下载、GitHub Stars 达 8, 最近一次更新时间为 2024 年 03 月 20 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 mmx/forms 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 mmx/forms 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 199
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 8
- 点击次数: 9
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-03-20