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

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

werx/forms
==========

Framework agnostic form helpers

1.9.1(5y ago)65.3k↓100%21MITPHPPHP &gt;= 5.4CI failing

Since Sep 4Pushed 5y ago4 watchersCompare

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

READMEChangelog (3)Dependencies (2)Versions (20)Used By (1)

werx\\Forms
===========

[](#werxforms)

[![Build Status](https://camo.githubusercontent.com/859621073bebb5e6e3b69759fd7d9084f765f5b27e4f9c25d6fb51ad7e7d5926/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f776572782f666f726d732e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/werx/forms) [![Total Downloads](https://camo.githubusercontent.com/62a9be6c15dbbbd72652be8c39d4df3b62e7a8d9798af10117deaa920b07b3d4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f776572782f666f726d732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/werx/forms) [![Latest Stable Version](https://camo.githubusercontent.com/a56cb35fe47f9de0747678e8e2689511f1649826c4cf97fd93f9497c0217e408/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f776572782f666f726d732e7376673f6c6162656c3d76657273696f6e267374796c653d666c61742d737175617265)](https://packagist.org/packages/werx/forms) [![Code Climate](https://camo.githubusercontent.com/42bf9d91c61a63e14b78c25bdaa4d224d6d5e637bb36b5f10db4a9cf100613e2/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6769746875622f776572782f666f726d732e7376673f7374796c653d666c61742d737175617265)](https://codeclimate.com/github/werx/forms/code)

Framework agnostic form helpers.

About
-----

[](#about)

I've never found form libraries terribly useful. In my experience, they either work only for the most simple forms, or end up being way more difficult to use than just writing the HTML by hand.

That said, I do need some really basic form helpers to easily pre-populate form fields (like from previous POST to correct errors or from a database) and build drop down boxes.

The primary goal of this library is to solve those 2 problems in a way I don't hate. If I can make some more robust form helpers that don't get in my way while I'm at it, all the better.

This library provides helpers for setting default values in otherwise static html form elements as well as an input builder for dynamically creating form elements.

Quick Examples
--------------

[](#quick-examples)

You can view the full documentation with more examples at

Here's a few quick examples to get you started.

```

```

### Text boxes

[](#text-boxes)

```
