PHPackages                             thybag/formz - 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. thybag/formz

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

thybag/formz
============

A Simple Stand-alone PHP Form Helper

11.1k1[1 issues](https://github.com/thybag/FormZ/issues)PHP

Since Apr 8Pushed 12y ago1 watchersCompare

[ Source](https://github.com/thybag/FormZ)[ Packagist](https://packagist.org/packages/thybag/formz)[ RSS](/packages/thybag-formz/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (1)Used By (0)

FormZ
=====

[](#formz)

A Simple Stand-alone PHP Form Helper

Installtion
-----------

[](#installtion)

FormZ can be installed via composer using:

```
composer require thybag/formz:dev-master

```

Once composer has installed the library, simply include the standard composer autoloader in to your code.

```
require 'vendor/autoload.php'

```

### Usage Examples

[](#usage-examples)

```
// Make Form refers to formz/Form
use formz\Form;

//Open form
Form::open("/somthing")->attributes(array("class"=>"test"))->render(true);

// Create a required text field with default value of "bob"**
Form::text("name")
 	->attributes(array('required'=>'required'))
 	->defaultValue("Bob")
 	->render(true);

// Select box with list of cows, css class cow_selector
// and default selection of Dexter**
Form::select("cow")
	->options(array(
		'A' => 'Angus',
		'D' => 'Dexter',
		'J' => 'Jersey',
		'H' => 'Holstein'
	))
	->attributes(array('class'=> 'cow_selector'))
	->defaultValue('D')
	->render(true);

Form::close()->render(true);

```

You can have the form automatically populated from post data by calling the following before the form methods

```
Form::populate($_POST);

```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

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

---

Top Contributors

[![thybag](https://avatars.githubusercontent.com/u/887397?v=4)](https://github.com/thybag "thybag (26 commits)")

### Embed Badge

![Health badge](/badges/thybag-formz/health.svg)

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

###  Alternatives

[avbdr/php-bootstrap-form

PHP Bootstrap Form Helper

564.2k](/packages/avbdr-php-bootstrap-form)[coldtrick/newsletter

Allows the creation and management of a newsletter to site/group members

153.8k](/packages/coldtrick-newsletter)

PHPackages © 2026

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