PHPackages                             aipng/forms - 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. aipng/forms

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

aipng/forms
===========

Reusable form control.

1.0(1y ago)0253MITPHPPHP &gt;=8.3CI passing

Since Jul 16Pushed 1y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (7)Versions (12)Used By (0)

BaseFormControl
---------------

[](#baseformcontrol)

"Form as a component" control. Form should be defined in `createComponentForm` method.

Simple structure:

```
/my-app/src/
    templates/MyForm.latte
    MyForm.php
    MyForm.latte

```

**MyForm.latte** - customized form template (when needed)

```
{form form}
    manual rendering of form controls
    ...
{/form}
```

**MyForm.php**

```
final class MyForm extends \AipNg\Forms\BaseFormControl
{

  public function createComponentForm(): \Nette\Application\UI\Form
  {
    $form = ...

    return $form;
  }

}
```

**Usage in presenter**

```
//  in presenter

class MyPresenter
  public function createComponentMyForm()
  {
    return new MyForm;
  }

  public function actionEdit()
  {
    $this['myForm']->setDefaults([
      ...
    ]);
  }
```

Latte
-----

[](#latte)

Input description macro helps to show control's description in template when using manual rendering.

Register in config.neon:

```
latte:
    extensions::
        - AipNg\Latte\FormInputDescriptionExtension
```

Just use anywhere in form template

```
{inputDescription $controlName}
```

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance44

Moderate activity, may be stable

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity85

Battle-tested with a long release history

 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

Every ~279 days

Recently: every ~584 days

Total

11

Last Release

437d ago

Major Versions

0.4 → 1.02025-03-07

PHP version history (3 changes)0.1PHP &gt;= 7.1

0.1.1PHP &gt;=7.1

1.0PHP &gt;=8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/35b41cd5d99fc8f0371a422b7ad64c164a21115a0598f97a74f8ff321f4dcee6?d=identicon)[aipng](/maintainers/aipng)

---

Top Contributors

[![khorsky](https://avatars.githubusercontent.com/u/160295?v=4)](https://github.com/khorsky "khorsky (43 commits)")

---

Tags

netteformcontrol

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/aipng-forms/health.svg)

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

###  Alternatives

[nette/code-checker

✅ Nette CodeChecker: A simple tool to check source code against a set of Nette coding standards.

881.7M6](/packages/nette-code-checker)[contributte/menu-control

Menu control for Nette framework

29108.6k1](/packages/contributte-menu-control)[carrooi/nette-menu

Menu control for Nette framework

2950.0k1](/packages/carrooi-nette-menu)[uestla/twigrid

Experimental DataGrid for Nette Framework

1712.3k2](/packages/uestla-twigrid)

PHPackages © 2026

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