PHPackages                             gclinux/form - 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. gclinux/form

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

gclinux/form
============

使用PHP方便创建一些表单控件,之前用thinkphp太揪心了,特别是遇到select的时候

1.01(8y ago)054MITPHP

Since Nov 10Pushed 8y ago1 watchersCompare

[ Source](https://github.com/gclinux/form)[ Packagist](https://packagist.org/packages/gclinux/form)[ RSS](/packages/gclinux-form/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)DependenciesVersions (5)Used By (0)

intuition
---------

[](#intuition)

一个非常简单的php表单输入框生成类,我自己主要是写来解决tp5模版生成表单不友好的问题.当然其他地方都可以用的.

#### install:

[](#install)

本类支持composer直接安装

```
composer require gclinux/form
```

#### how to use:

[](#how-to-use)

```
$f = new gclinux\form();

$f->input('my-name','Joffe');
//

//setAttr will effect the default attr.
$f->setAttr('class'=>'AA')->input('my-name','Joffe');
$f->input('my-name2','Joffe');
//
//

$f->input('my-name','Joffe','passwd',[class=>'pass','test'=>""]);
//

$f->select('simple-select',['a','b','c','d'=>'E'],'b');
/**

a
b
c
E

**/
//group selectd
$f->select('group-select',['group_A'=>['a','b','c'],'group_B'=>['a1'=>'A','b1'=>'B']],'b');
/*

a
b
c

A
B

*/

//complex select
$f->select('test',
	[
	'test'=>9,
	'group'=>['a'=>'A','b'=>'B','C','D'],
	'E','f'=>'F',
	'number_group'=>['1','CC','NUMC'=>['a9','a10']],
	'ccc'
	]
	,'C');
/*

9

A
B
C
D

E
F

1
CC

a9
a10

ccc

*/

//textarea
$f->textarea('name','the value');
```

在thinkphp里面使用
-------------

[](#在thinkphp里面使用)

安装后 composer require gclinux/form

在需要用的模版上 例如 view/index/index.html 里

```
{~$f = new \gclinux\Form()}
{:$f->input('test','')}

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~3 days

Total

4

Last Release

3098d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6d936ead2ff5263eab7482a3ae58a6ba348bb93f7b9add32e4f4a225161ec95f?d=identicon)[gclinux](/maintainers/gclinux)

---

Top Contributors

[![gclinux](https://avatars.githubusercontent.com/u/4175914?v=4)](https://github.com/gclinux "gclinux (6 commits)")

### Embed Badge

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

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

###  Alternatives

[simple-icons/simple-icons

SVG icons for popular brands

24.8k194.2k4](/packages/simple-icons-simple-icons)[outl1ne/nova-menu-builder

This Laravel Nova package allows you to create and manage menus and menu items.

243246.0k3](/packages/outl1ne-nova-menu-builder)[sunspikes/php-ratelimiter

A framework agnostic rate limiter for PHP

76674.1k1](/packages/sunspikes-php-ratelimiter)[advoor/nova-editor-js

A Laravel Nova field bringing EditorJs magic to Nova.

92179.0k3](/packages/advoor-nova-editor-js)[njxqlus/filament-relation-manager-component

Use Filament Relation Manager Everywhere!

4493.6k2](/packages/njxqlus-filament-relation-manager-component)[swissup/module-marketplace

One-Click modules and themes downloader/installer

18383.8k2](/packages/swissup-module-marketplace)

PHPackages © 2026

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