PHPackages                             phpclass-form-generater/phpclass-form-generater - 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. phpclass-form-generater/phpclass-form-generater

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

phpclass-form-generater/phpclass-form-generater
===============================================

php class for html form generater

21[1 issues](https://github.com/iamapinan/phpclass-form-generater/issues)PHP

Since Aug 8Pushed 8y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

About PHP HTML Generater
========================

[](#about-php-html-generater)

[![Build Status](https://camo.githubusercontent.com/84764642860deeecfeaf815fed486ff17d62b7362a99872c6acbfdcaae150281/68747470733a2f2f7472617669732d63692e6f72672f69616d6170696e616e2f7068702d68746d6c2d67656e6572617465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/iamapinan/php-html-generater)

This script will auto generate HTML output and it very easy to use and work with bootstrap framwork.

[Download stable version](https://github.com/iamapinan/php-html-generater/archive/master.zip)

How to use.
-----------

[](#how-to-use)

Using step start with create form object.

`$frm = new form;`

Before start you must assign form object and configuration to `$frm->form_object`. Below is example of use.

```
$frm = new form;
$frm->form_object = array(
  1=>array(
    "type"=>"text",
    "label"=>"Your name",
    "name"=>"fullname",
    "class"=>"form-control",
    "value"=>"John Doe",
    "placeholder"=>"Firstname Lastname"
  ),
  2=>array(
    "type"=>"select",
    "label"=>"Age",
    "name"=>"age",
    "class"=>"form-control",
    "data"=>array(
      "1-10"=>"1-10",
      "11-20"=>"11-20",
      "21-30"=>"21-30"
    )
  ),
  3=>array(
    "type"=>"checkbox",
    "label"=>"Agree to term of services",
    "name"=>"agree",
    "attribute"=>"checked",
    "class"=>"checkbox"
  ),
  4=>array(
    "type"=>"submit",
    "class"=>"btn btn-primary btn-large",
    "value"=>"Submit"
  ),
);

// Sample alert dialog.
$alert = $frm->alert_dialog('success','Test Message');
$frm->add_custom_object($alert);
$frm->form_start();
$frm->set_form_object();
$frm->form_finish();

// Render the form.
echo $frm->form_render();
```

Special method.
---------------

[](#special-method)

`alert_dialog` this method will return alert component from bootstrap alert.

```
$frm->alert_dialog('return type','Test Message');
```

Return type support is like bootstrap alert type.

`add_custom_object` this method use when you need to add your own form object or html code to the form.

```
$frm->add_custom_object('My Example HTML Code');

```

Form input type supported.
--------------------------

[](#form-input-type-supported)

```
"text"
"password"
"email"
"file"
"date"
"datetime"
"month"
"color"
"number"
"range"
"search"
"tel"
"time"
"url"
"week"
"radio"
"checkbox"
"button"
"submit"
"select"
"textarea"
```

Developer
---------

[](#developer)

Email

### Apache License

[](#apache-license)

Version 2.0, January 2004

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/6641e8445eea16adea5b6d68a75848635741e792d59c45af46c1b7a9ce6f606a?d=identicon)[iamapinan](/maintainers/iamapinan)

---

Top Contributors

[![iamapinan](https://avatars.githubusercontent.com/u/1413490?v=4)](https://github.com/iamapinan "iamapinan (27 commits)")

### Embed Badge

![Health badge](/badges/phpclass-form-generater-phpclass-form-generater/health.svg)

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

###  Alternatives

[mauserrifle/simresults

Simrace result reader for PHP

664.8k](/packages/mauserrifle-simresults)[zerkalica/millwright-menu-bundle

Config abstraction for knp menu bundle

234.1k3](/packages/zerkalica-millwright-menu-bundle)

PHPackages © 2026

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