73 Star 342 Fork 81

xaboy / form-builder

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

form-builder

MIT xaboy version php version

PHP表单生成器,快速生成现代化的form表单。包含复选框、单选框、输入框、下拉选择框等元素以及省市区三级联动、时间选择、日期选择、颜色选择、树型、文件/图片上传等功能。

demo1 demo2

文档

文档

环境需求

  • PHP >= 5.4

支持 UI

  • IView
  • ElementUI

功能介绍

  • 内置17种常用的表单组件
  • 支持表单验证
  • 支持生成任何 Vue 组件
  • 支持栅格布局
  • 支持注解
  • 可以配合 form-create 生成更复杂的表单

内置组件

  • hidden
  • input
  • inputNumber
  • checkbox
  • radio
  • switch
  • select
  • autoComplete
  • cascader
  • colorPicker
  • datePicker
  • timePicker
  • rate
  • slider
  • upload
  • tree
  • frame

安装

使用 composer:

$ composer require xaboy/form-builder:~2.0

DEMO

下载项目

git clone https://github.com/xaboy/form-builder.git

开启服务

cd form-builder
composer install
php -S 127.0.0.1:8112

查看 Demo

演示项目

开源的高品质微信商城

演示地址: http://demo25.crmeb.net 账号:demo 密码:crmeb.com

使用建议

  1. 建议将静态资源加载方式从 CDN 加载修改为自己本地资源或自己信任的 CDN
  2. 建议根据自己的业务逻辑重写默认的表单生成页 默认表单生成页

组件生成效果

https://raw.githubusercontent.com/xaboy/form-builder/2.0/images/components.png

MIT License Copyright (c) 2018 xaboy Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

PHP表单生成器,使用PHP快速生成现代化的form表单,包含复选框、单选框、输入框、下拉选择框等元素以及,省市区三级联动,时间选择,日期选择,颜色选择,文件/图片上传等功能。 展开 收起
PHP
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
PHP
1
https://gitee.com/xaboy/form-builder.git
git@gitee.com:xaboy/form-builder.git
xaboy
form-builder
form-builder
master

搜索帮助

14c37bed 8189591 565d56ea 8189591