stonelab/formbuilder
Composer 安装命令:
composer require stonelab/formbuilder
包简介
README 文档
README
This module is working, but in a very alpha version. Using is at your own risk! You are welcome to work on it
Table of contents
Prerequisites
Installation
Permission
Usage
Notice
Troubleshoot
Todo
Prerequisites
Due the package ist based on several prerequisites, you need follow the following steps:
- Install Pingponglabs Shortcode Package
- Install Formbuilder
- Add middleware
Please follow the installation instructions below step by step.
Installation
1. Install Pingponglabs Shortcode Package
To display the forms in the frontend, it requires the Shortcode Module of Pingpong Sky Labs:
http://sky.pingpong-labs.com/docs/2.0/shortcode
Due Pingponglabs changed the parse logic in the newest version, an incompatibility in some cases could occure.
That's why we will fix the version to 2.1.
Please add this to your composer.json file:
"pingpong/shortcode": "2.1",
Next, open a terminal and run.
composer update
After the composer updated. Add new service provider in config/app.php.
'Pingpong\Shortcode\ShortcodeServiceProvider'
Add new Facade alias.
'Shortcode' => 'Pingpong\Shortcode\ShortcodeFacade',
Done.
2. Install Formbuilder
Now you can install the Formbuilder Please add this to your composer.json file:
"stonelab/formbuilder": "~1.0"
and run composer update again.
That's it.
3. Add middleware
To make it work, you need to add a middleware to the Page Module.
If you not already have it, create a file asgard.page.config.middleware.php under confid folder.
The content should look like:
<?php return [ 'Modules\Formbuilder\Http\Middleware\FormbuilderMiddleware' ];
Notice: This feature was newly added to the page module. Make sure you got the latest version
5. Permission
Don't forget to set the Permissions for the newly added Formbuilder module.
Usage
You can mangage your forms in backend under the Formbuilder seciton. While you're creating your form, pleas make sure you filled out all necessary datas on all section and languages (specially mail section), esle you will lose your created form when you try to save and you need to do it again. this will be solved in future release. For every you form you've created you'll get an form id which you can you use through the shortcode.
The shortcode looks like:
[form id=1]
you can put this shortcode wherevery you want in the an page content.
All submitted forms are automatically stored and you can see it in the backend.
Notice
At the moment, the output are Bootstrapped Fields and Wrappers. This will be changed in the future.
Troubleshoot
Error: Shortcode not found
You need first setup the Shortcode package. When this error appears, it means you not have added the alias under config/app.php.
Form could not be sent
Please check you mail driver under config/mail.php
When it's set up correctly, then check if you have set up valid mail addresses your form mail settings.
TODO
Fix losing data when not filled out all necessary datas due saving. Make Layout more flexible
stonelab/formbuilder 适用场景与选型建议
stonelab/formbuilder 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 27 次下载、GitHub Stars 达 3, 最近一次更新时间为 2016 年 01 月 20 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「form」 「formbuilder」 「asgardcms」 「asgard」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 stonelab/formbuilder 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 stonelab/formbuilder 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 stonelab/formbuilder 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Spam protection using a honeypot field for the Neos form builder
Diese Contao 4 Erweiterung stellt Google reCAPTCHA V2 in Form eines neuen Formularfeldes im Formulargenerator bereit. This extension provides Google reCAPTCHA V2 in the form of a new form field in the form generator of Contao Open Source CMS.
A Laravel Filament Forms slug field.
A jQuery augmented PHP library for creating and validating HTML forms
Page module for AsgardCMS. Page management.
Laravel contact us form package to send email and save to database
统计信息
- 总下载量: 27
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-01-20