PHPackages                             pails/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. pails/form\_builder

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

pails/form\_builder
===================

v1.0.3(9y ago)0468↓100%1PHP

Since Jul 4Pushed 9y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (5)Used By (1)

pails-form-builder
==================

[](#pails-form-builder)

A utility that makes building a form ridiculously easy.

Dependencies
------------

[](#dependencies)

None

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

[](#installation)

In the root of a pails app, run

```
pails install form_builder

```

Configuration
-------------

[](#configuration)

Inside any controller where you want to make use of the form builder, `use` the `FormBuilder` [trait](http://php.net/manual/en/language.oop5.traits.php).

```
class DefaultController extends Pails\Controller
{
	use PailsAuthentication;
}
```

Then, in the relevant views, you can call `$this->input_for()`

string input\_for(string data\_name, string label, array options)
-----------------------------------------------------------------

[](#string-input_forstring-data_name-string-label-array-options)

- data\_name - the `name` of the form element
- label - the text that should accompany the form element
- options - an array of options, depending on the type of element
    - type - (default: text) the type of input
        - list - `select` list, with options
        - textarea - a large textbox
        - radio - a set of radio buttons, with options
        - check - a set of checkboxes, with options
        - number - a `number` input type (with options, multiple)
        - text - a standard text input field
    - value - (default: empty string) the initial value of the element
    - tooltip - (default: empty string) the `title` attribute, provides additional information about the input
    - style - (default: empty string; textarea only) inline CSS styles
    - options - (default: array(); radio, check, list, and number only) an associative array of options. key is the input's `value` and the value is the text that should be displayed for that option
- Returns: a string of HTML built with the corresponding options

Support
-------

[](#support)

pails-form-builder is a core plugin supported by Synapse Software. Contact us at .

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

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

Total

4

Last Release

3641d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5fa7c6719167ebb9c156d400c616cc6df1e7742a31f0ce915b8934a1f4742fe3?d=identicon)[bparks](/maintainers/bparks)

---

Top Contributors

[![bparks](https://avatars.githubusercontent.com/u/538419?v=4)](https://github.com/bparks "bparks (5 commits)")

### Embed Badge

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

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

PHPackages © 2026

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