PHPackages                             nitroxy/php-forms - 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. nitroxy/php-forms

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

nitroxy/php-forms
=================

Form builder

1.4.3(9y ago)0109BSD-3-ClausePHPPHP &gt;=5.4.0

Since Apr 13Pushed 9y ago3 watchersCompare

[ Source](https://github.com/NitroXy/php-forms)[ Packagist](https://packagist.org/packages/nitroxy/php-forms)[ RSS](/packages/nitroxy-php-forms/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (8)Versions (16)Used By (0)

Form builder for PHP
====================

[](#form-builder-for-php)

[![Build Status](https://camo.githubusercontent.com/ca71cf201d9705cab2bb727aa262cd7c2e03ba7818dcae095b4b2a163e406a1f/68747470733a2f2f7472617669732d63692e6f72672f4e6974726f58792f7068702d666f726d732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/NitroXy/php-forms)[![Coverage Status](https://camo.githubusercontent.com/42cb7c9562593f9c31341ca01ff40c4b20115aad653f657afb13f6f0df0ceb61/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f4e6974726f58792f7068702d666f726d732f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/NitroXy/php-forms?branch=master)

Installation
------------

[](#installation)

`composer require nitroxy/php-forms`

Features
--------

[](#features)

- Create HTML5 forms easily.
- Layout engine (supports tables, divs and bootstrap out-of-the-box).
- Bind forms to PHP objects for reading/data and presenting validation errors.
- CSRF protection.
- Supports REST-verbs such as `PATCH`, `PUT`, `DELETE` or even custom if desired.

Example
-------

[](#example)

```
Form::from_object($user, function($f){
  $f->text_field('name', 'Name');
  $f->text_field('age', 'Age', ['type' => 'number', 'min' => 1]);
  $f->select(FormSelect::from_array($f, 'role', array('', 'Manager', 'Frobnicator', 'Developer'), 'Role'));
  $f->textarea('description', 'Description');
}, ['action' => $user->url, 'method' => 'patch']);
```

See [documentation](http://nitroxy.github.io/php-forms/) for examples and usage.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

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 ~37 days

Recently: every ~17 days

Total

15

Last Release

3524d ago

### Community

Maintainers

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

---

Top Contributors

[![ext](https://avatars.githubusercontent.com/u/41535?v=4)](https://github.com/ext "ext (193 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nitroxy-php-forms/health.svg)

```
[![Health](https://phpackages.com/badges/nitroxy-php-forms/health.svg)](https://phpackages.com/packages/nitroxy-php-forms)
```

###  Alternatives

[uma/composer-psysh

No-frills PsySH-Composer plugin

183.2k](/packages/uma-composer-psysh)[antares/accessible

PHP library that allows you to define your class' getters, setters and constructor with docblock annotations.

123.9k1](/packages/antares-accessible)

PHPackages © 2026

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