PHPackages                             pleonovich/doform - 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. pleonovich/doform

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

pleonovich/doform
=================

Simple way to render html forms.

1.0.0(6y ago)09Apache-2.0PHPPHP &gt;=5.0.0

Since Jul 28Pushed 6y ago1 watchersCompare

[ Source](https://github.com/pleonovich/doform)[ Packagist](https://packagist.org/packages/pleonovich/doform)[ Docs](https://github.com/pleonovich/doform)[ RSS](/packages/pleonovich-doform/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

DoForm
======

[](#doform)

Simple way to render html forms

Some examples
-------------

[](#some-examples)

### text

[](#text)

```
use DoForm\DoForm as DoForm;

// Description:
DoForm text ( string $name [, string $value = null [, string $extra = null ]] )

// Example:
echo DoForm::factory()->text('name');
// Result:
//
```

### textarea

[](#textarea)

```
use DoForm\DoForm as DoForm;
// Description:
DoForm text ( string $name [, string $value = null [, $cols = 50 [, $rows = 3 [, $extra = null ]]]] )

// Example:
echo DoForm::factory()->textarea('biography');
// Result:
//
```

### select

[](#select)

```
use DoForm\DoForm as DoForm;

// Description:
DoForm select ( string $name, array $options [, string $value = null [, string $extra = null ]] )

// Example:
echo DoForm::factory()->select('gender', array('male','famale'));
// Result:
//
// male
// famale
//
```

### selectIndexed

[](#selectindexed)

```
use DoForm\DoForm as DoForm;

// Description:
DoForm selectIndexed ( string $name, array $options [, string $value = null [, string $extra = null ]] )

// Example:
echo DoForm::factory()->selectIndexed('gender1', array('1'=>'famale','2'=>'male'), '2');
// Result:
//
// famale
// male
//
```

### selectIndexed

[](#selectindexed-1)

```
use DoForm\DoForm as DoForm;

// Description:
DoForm selectFormated ( string $name, array $options [, string $value = null [, string $extra = null ]] )

// Example:
echo DoForm::factory()->selectFormated('gender2', array(array('1','famale'),array('2','male')), '2');
// Result:
//
// famale
// male
//
```

### checkbox

[](#checkbox)

```
use DoForm\DoForm as DoForm;

// Description:
DoForm checkbox ( string $name [, string $value = null [, string $extra = null ]] )

// Example:
echo DoForm::factory()->checkbox('maried');
// Result:
//
```

### \_file

[](#_file)

```
use DoForm\DoForm as DoForm;

// Description:
DoForm _file ( [ string $name = "file" [, $multiple = true [, $extra = null ]]] )

// Example:
echo DoForm::factory()->_file('avatar');
// Result:
//
```

### submit

[](#submit)

```
use DoForm\DoForm as DoForm;

// Description:
DoForm submit ( string $name [, $extra = null ] )

// Example:
echo DoForm::factory()->submit('Send');
// Result:
//
```

### Creating form

[](#creating-form)

```
use DoForm\DoForm as DoForm;

$form = DoForm::factory()
->text('name')
->textarea('biography')
->select('gender', array('male','famale'))
->selectIndexed('gender1', array('1'=>'famale','2'=>'male'), '2')
->selectFormated('gender2', array(array('1','famale'),array('2','male')), '2')
->checkbox('maried')
->_file('avatar')
->submit('Send');
```

DoInput
=======

[](#doinput)

Simple way to render html form inputs

Example:
--------

[](#example)

```
use DoForm\DoInput as DoInput;

$input = DoInput::text('name');
$input.= DoInput::textarea('biography');
$input.= DoInput::select('gender', array('male','famale'), 'famale');
$input.= DoInput::selectIndexed('gender', array('1'=>'famale','2'=>'male'), '2');
$input.= DoInput::selectFormated('gender', array(array('1','famale'),array('2','male')), '2');
$input.= DoInput::checkbox('maried');
$input.= DoInput::_file('avatar');
$input.= DoInput::submit('Send');
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2482d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a6cedf1f24bd1ebfbe2d48ba65544bad385d9d1a83418d9c44474052df74b68b?d=identicon)[Pavel Leonovich](/maintainers/Pavel%20Leonovich)

---

Top Contributors

[![pleonovich](https://avatars.githubusercontent.com/u/12541362?v=4)](https://github.com/pleonovich "pleonovich (9 commits)")

---

Tags

htmlforminput

### Embed Badge

![Health badge](/badges/pleonovich-doform/health.svg)

```
[![Health](https://phpackages.com/badges/pleonovich-doform/health.svg)](https://phpackages.com/packages/pleonovich-doform)
```

###  Alternatives

[robinherbots/jquery.inputmask

Inputmask is a javascript library which creates an input mask. Inputmask can run against vanilla javascript, jQuery and jqlite.

6.5k276.6k4](/packages/robinherbots-jqueryinputmask)[aura/html

Provides HTML escapers and helpers, including form input helpers.

52270.5k21](/packages/aura-html)[kartik-v/yii2-widget-rating

A Yii2 widget for the simple yet powerful bootstrap-star-rating plugin with fractional rating support (sub repo split from yii2-widgets)

444.1M8](/packages/kartik-v-yii2-widget-rating)[harvesthq/chosen

Chosen is a JavaScript plugin that makes select boxes user-friendly. It is currently available in both jQuery and Prototype flavors.

385.2M12](/packages/harvesthq-chosen)[kartik-v/yii2-widget-switchinput

A Yii2 wrapper widget for the Bootstrap Switch plugin to use checkboxes &amp; radios as toggle switchinputes (sub repo split from yii2-widgets)

384.4M13](/packages/kartik-v-yii2-widget-switchinput)[kartik-v/yii2-widget-colorinput

An enhanced Yii 2 widget encapsulating the HTML 5 color input (sub repo split from yii2-widgets)

324.8M10](/packages/kartik-v-yii2-widget-colorinput)

PHPackages © 2026

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