PHPackages                             fullstackpe/micro-form - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. fullstackpe/micro-form

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

fullstackpe/micro-form
======================

Form builder

3.0.0(5y ago)155373MITPHPPHP &gt;=7.0.0CI failing

Since Mar 2Pushed 5y ago2 watchersCompare

[ Source](https://github.com/marcomilon/micro-form)[ Packagist](https://packagist.org/packages/fullstackpe/micro-form)[ RSS](/packages/fullstackpe-micro-form/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (3)Dependencies (1)Versions (6)Used By (0)

micro-form
==========

[](#micro-form)

Micro-form is a library to translate any datasource into into html form elements. Only Json Objects can be use as datasources.

### Installation

[](#installation)

First you need to install Composer. You may do so by following the instructions at [getcomposer.org](https://getcomposer.org/download/). After that run

> composer require fullstackpe/micro-form

If you prefer you can create a composer.json in your project folder.

```
{
    "require": {
        "fullstackpe/micro-form": "^3.0"
    }
}
```

### How it works?

[](#how-it-works)

Create a `jsform` object.

```
use micro\FormFactory;
$jsonForm = FormFactory::jsonForm();
echo $jsonForm->render($json);

```

then call render to get the form elements. The render method accepts a Json Object.

**Examples**

**Input**

```
