PHPackages                             flsouto/htform - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. flsouto/htform

ActiveLibrary[HTTP &amp; Networking](/categories/http)

flsouto/htform
==============

Library for building html forms without pain

1.0.2(5y ago)037PHP

Since Apr 9Pushed 5y agoCompare

[ Source](https://github.com/flsouto/htform)[ Packagist](https://packagist.org/packages/flsouto/htform)[ RSS](/packages/flsouto-htform/feed)WikiDiscussions master Synced 2mo ago

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

HtForm
======

[](#htform)

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

[](#installation)

To install this package use composer:

```
composer require flsouto/htform

```

Overview
--------

[](#overview)

Forget about everything you've seen so far regarding form building tools and libraries. The approach you are going to see here is something totally new and straightforward:

- No need to instantiate and/or configure tons of objects.
- No need to define and connect the form to a model.
- No need to have xml or yml files defining how the form is supposed to behave.
- No need to define your own form and field classes.
- No need to setup a "renderer engine" before the form can be rendered.
- No need to get the form builder from a DIC (Dependency Injection Container)

Usage
-----

[](#usage)

All you have to do is this: create a form object, add some fields and echo it:

```
