PHPackages                             gregwar/dsd - 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. gregwar/dsd

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

gregwar/dsd
===========

Formidable, the pragmatic forms library

v2.2.1(2y ago)1191519[8 issues](https://github.com/Gregwar/DSD/issues)[4 PRs](https://github.com/Gregwar/DSD/pulls)MITPHPPHP &gt;=7.0CI failing

Since Oct 7Pushed 2y ago5 watchersCompare

[ Source](https://github.com/Gregwar/DSD)[ Packagist](https://packagist.org/packages/gregwar/dsd)[ Docs](https://gregwar.com/Formidable/)[ RSS](/packages/gregwar-dsd/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (20)Used By (0)

Formidable
==========

[](#formidable)

[![PHP 7](https://camo.githubusercontent.com/afccd0511dbf9853ce8495ff73bc911f059d7f6c14ffa734002b10ff73562cb3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e302d626c75652e737667)](https://camo.githubusercontent.com/afccd0511dbf9853ce8495ff73bc911f059d7f6c14ffa734002b10ff73562cb3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e302d626c75652e737667)[![PHP 7.1](https://camo.githubusercontent.com/d29ceb6206232af72a55b5ed3e6fab0a1f2d6cb6c728a088c9c18c4b035a0765/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e312d626c75652e737667)](https://camo.githubusercontent.com/d29ceb6206232af72a55b5ed3e6fab0a1f2d6cb6c728a088c9c18c4b035a0765/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e312d626c75652e737667)[![PHP 7.2](https://camo.githubusercontent.com/5180a354acf28fb748fbeddd95219b60e0145d1e0eac9f976ca9a1bc9bc0337b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e322d626c75652e737667)](https://camo.githubusercontent.com/5180a354acf28fb748fbeddd95219b60e0145d1e0eac9f976ca9a1bc9bc0337b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e322d626c75652e737667)[![Build status](https://camo.githubusercontent.com/7bb657db16011931653ed64322055d133903c7e679a7663ac6d448ad0d180776/68747470733a2f2f7472617669732d63692e6f72672f477265677761722f466f726d696461626c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Gregwar/Formidable)[![paypal](https://camo.githubusercontent.com/e1ff554a09e8e92bef25abc553ff05b88f45afd695877cf12f3a46558ef65b2e/68747470733a2f2f7777772e70617970616c6f626a656374732e636f6d2f656e5f55532f692f62746e2f62746e5f646f6e61746543435f4c472e676966)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YUXRLWHQSWS6L)

Formidable is a PHP library to handle forms. It parses an HTML form and allows you to manipulate it from your PHP code, and then render it.

How does it work?
-----------------

[](#how-does-it-work)

### Step 1: Download &amp; install Formidable

[](#step-1-download--install-formidable)

Via composer:

```
{
    "require": {
        "gregwar/formidable": "dev-master"
    }
}
```

Or with a clone of the repository:

```
git clone https://github.com/Gregwar/Formidable.git
```

Or downloading it:

- [Download .zip](https://github.com/Gregwar/Formidable/archive/master.zip)
- [Download .tar.gz](https://github.com/Gregwar/Formidable/archive/master.tar.gz)

### Step 2: Write your form in HTML

[](#step-2-write-your-form-in-html)

First, you have to write your code in HTML, for instance:

```

    Enter your name:

```

### Step 3: Give it to Formidable

[](#step-3-give-it-to-formidable)

In your PHP code, give your form to Formidable:

```
