PHPackages                             xaboy/form-builder - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. xaboy/form-builder

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

xaboy/form-builder
==================

好用的PHP表单生成器，快速生成现代化的form表单,支持前后端分离。内置17种常用表单组件。目前在政务系统、OA系统、ERP系统、电商系统、流程管理等系统中已稳定应用。

2.1.1(1y ago)76275.0k—2.8%178[44 issues](https://github.com/xaboy/form-builder/issues)[1 PRs](https://github.com/xaboy/form-builder/pulls)5MITPHPPHP &gt;=7.1

Since Jun 22Pushed 1y ago30 watchersCompare

[ Source](https://github.com/xaboy/form-builder)[ Packagist](https://packagist.org/packages/xaboy/form-builder)[ Docs](https://github.com/xaboy/form-builder)[ RSS](/packages/xaboy-form-builder/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (35)Used By (5)

 [ ![](https://camo.githubusercontent.com/5eafb771ace47b7a12282b4d60033c64febba71f293e294b1648a2312d81c145/68747470733a2f2f7068702e666f726d2d6372656174652e636f6d2f666f726d2d6275696c6465722e706e67) ](https://github.com/xaboy/form-builder)

FormBuilder
===========

[](#formbuilder)

 [官网](https://www.form-create.com/)  |  [帮助文档](https://php.form-create.com)  |  [可视化表单设计器](https://pro.form-create.com/view/)  |  [移动端表单设计器](https://pro.form-create.com/mobile/)

 [ ![MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667) ](https://github.com/xaboy/form-builder) [ ![php version](https://camo.githubusercontent.com/6d9672a9717a6f2c1446d51284bc80cd40c29e1e0b5af982c6ff47fd95105457/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7861626f792f666f726d2d6275696c6465722e737667) ](https://packagist.org/packages/xaboy/form-builder)

PHP表单生成器，基于 [@form-create/element-ui](https://github.com/xaboy/form-create) 实现快速生成现代化的Form表单。包含复选框、单选框、输入框、下拉选择框等元素以及省市区三级联动、时间选择、日期选择、颜色选择、树型、文件/图片上传等功能。

[![FcDesigner](https://camo.githubusercontent.com/7593d39fb0455d98d08a3cbd79d6db7c0300bb56ebe893b5272bdc43b4d54c6a/68747470733a2f2f7374617469632e666f726d2d6372656174652e636f6d2f66696c652f696d672f62616e6e65722d6d322e6a7067)](https://pro.form-create.com/view)

特点
--

[](#特点)

- 使用JSON数据生成表单
- 支持扩展，生成任何Vue组件和HTML标签
- 支持组件之间联动
- 提供丰富的表单操作API
- 支持子表单和分组
- 高性能

环境需求
----

[](#环境需求)

- 2.0版本 `PHP >= 5.4`
- 2.1版本 `PHP >= 7.1`

支持 UI
-----

[](#支持-ui)

> - IView
> - ElementUI

安装
--

[](#安装)

使用 [composer](http://getcomposer.org/):

```
$ composer require xaboy/form-builder
```

DEMO
----

[](#demo)

下载项目

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

开启服务

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

查看 Demo

127.0.0.1:8112/demo/elm.php

演示项目
----

[](#演示项目)

[开源的高品质微信商城](http://github.crmeb.net/u/xaboy)

演示地址:  账号：demo 密码：crmeb.com

使用建议
----

[](#使用建议)

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

预览
--

[](#预览)

[![https://raw.githubusercontent.com/xaboy/form-builder/2.0/images/components.png](https://raw.githubusercontent.com/xaboy/form-builder/master/images/components.png)](https://raw.githubusercontent.com/xaboy/form-builder/master/images/components.png)

[![demo1](https://raw.githubusercontent.com/xaboy/form-create/dev/images/demo-live3.gif)](https://raw.githubusercontent.com/xaboy/form-create/dev/images/demo-live3.gif)

[![demo2](https://github.com/xaboy/form-create/raw/dev/images/demo-group.gif?raw=true)](https://github.com/xaboy/form-create/raw/dev/images/demo-group.gif?raw=true)

###  Health Score

51

—

FairBetter than 96% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity55

Moderate usage in the ecosystem

Community32

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 96.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~70 days

Recently: every ~405 days

Total

34

Last Release

557d ago

Major Versions

1.2.10 → 2.0.02019-09-14

PHP version history (2 changes)1.0.5PHP &gt;=5.4.0

2.1.0PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/bfc1dbf8cebcd0dc870cbaa6bb0ac7d20499acff2fe8fea03424ca407efaee61?d=identicon)[xaboy](/maintainers/xaboy)

---

Top Contributors

[![xaboy](https://avatars.githubusercontent.com/u/21242408?v=4)](https://github.com/xaboy "xaboy (180 commits)")[![shulinqian](https://avatars.githubusercontent.com/u/3351161?v=4)](https://github.com/shulinqian "shulinqian (3 commits)")[![ccc008](https://avatars.githubusercontent.com/u/8074421?v=4)](https://github.com/ccc008 "ccc008 (1 commits)")[![monkeywithacupcake](https://avatars.githubusercontent.com/u/7316730?v=4)](https://github.com/monkeywithacupcake "monkeywithacupcake (1 commits)")[![suframe](https://avatars.githubusercontent.com/u/52858585?v=4)](https://github.com/suframe "suframe (1 commits)")

---

Tags

create-formformform-builderform-generatorphpformform generatorform-builderdynamic formiviewelement-uiform-create

### Embed Badge

![Health badge](/badges/xaboy-form-builder/health.svg)

```
[![Health](https://phpackages.com/badges/xaboy-form-builder/health.svg)](https://phpackages.com/packages/xaboy-form-builder)
```

###  Alternatives

[kevinchappell/form-builder

jQuery formBuilder

2.7k6.9k2](/packages/kevinchappell-form-builder)[inkvizytor/fluentform

Form builder for Laravel

3416.2k](/packages/inkvizytor-fluentform)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
