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)0254MITPHPPHP &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 today

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

40

—

FairBetter than 86% of packages

Maintenance42

Moderate activity, may be stable

Popularity11

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

482d 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://avatars.githubusercontent.com/u/29610479?v=4)[aipng](/maintainers/aipng)[@aipng](https://github.com/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.

911.7M6](/packages/nette-code-checker)[nextras/datagrid

Datagrid component for Nette Framework.

71271.6k4](/packages/nextras-datagrid)[nette/web-project

Nette: Standard Web Project

10993.3k](/packages/nette-web-project)[tomaj/nette-api

Nette api

36273.2k8](/packages/tomaj-nette-api)[contributte/menu-control

Menu control for Nette framework

29113.7k1](/packages/contributte-menu-control)[voda/date-input

HTML 5 compatible date / time input field for Nette.

1092.9k1](/packages/voda-date-input)

PHPackages © 2026

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