PHPackages                             pashist/miniform - 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. pashist/miniform

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

pashist/miniform
================

Minimalistic PHP forms library

06

Since Feb 13Compare

[ Source](https://github.com/pashist/MiniForm)[ Packagist](https://packagist.org/packages/pashist/miniform)[ RSS](/packages/pashist-miniform/feed)WikiDiscussions Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

MiniForm
========

[](#miniform)

Minimalistic PHP forms library

Basic usage
-----------

[](#basic-usage)

\#####Creating form instance:

```
$form = new \MiniForm\Form();
$form->addInput(['name' => 'someName', 'type' => 'text']); //name is required
$form->addInput(['name' => 'someName2', 'type' => 'text', 'required' => true]);

```

or

```
$form = new \MiniForm\Form([
    'fields' => [
        ['input', ['type' => 'text', 'name' => 'someName' ]],
        ['input', ['type' => 'text', 'name' => 'someName2', 'required' => true ]]
    ]
]);

```

\#####Submit data to form:

```
$form->submit(['someName' => 'someValue']);

```

or

```
$form->submit(); //same as $form->submit($_REQUEST);

```

\#####Validate form:

```
$form->validate(); // not neccessary
$form->isValid(); // true/false
$form->getErrors() // ['someName2' => ['this field is required']]

```

\#####Display form:

```

   html() ?>

```

Or

```

```

Or show each field separately

```

    Some Label
    someName->html() ?>

      Some Label 2
      someName2 ?>

```

### To be continued ;)

[](#to-be-continued-)

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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/4ac8fe1a6197f91318d72ddf8e9374353de04f7b5c59ceb0a98fe514dc0b2b8e?d=identicon)[pashist](/maintainers/pashist)

### Embed Badge

![Health badge](/badges/pashist-miniform/health.svg)

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

###  Alternatives

[lisachenko/z-engine

Write PHP extensions in pure PHP: direct FFI access to the Zend Engine internals

45523.7k3](/packages/lisachenko-z-engine)[akiraz2/yii2-ticket-support

Yii2 Support Ticket Module, easy, flexible, fast

591.7k](/packages/akiraz2-yii2-ticket-support)[react-parallel/react-parallel

🌉 Bridging ext-parallel and ReactPHP

1520.1k2](/packages/react-parallel-react-parallel)

PHPackages © 2026

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