PHPackages                             drago-ex/form - 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. [Templating &amp; Views](/categories/templating)
4. /
5. drago-ex/form

ActiveLibrary[Templating &amp; Views](/categories/templating)

drago-ex/form
=============

Helper classes for Nette forms with extended inputs and shortcuts.

v1.0.9(3mo ago)0226↓66.7%1MITPHPPHP &gt;=8.3 &lt;9CI passing

Since Dec 18Pushed 3mo agoCompare

[ Source](https://github.com/drago-ex/form)[ Packagist](https://packagist.org/packages/drago-ex/form)[ RSS](/packages/drago-ex-form/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (7)Dependencies (6)Versions (10)Used By (1)

Drago Form
----------

[](#drago-form)

Drago Form is a lightweight and extendable form component built on top of the Nette Framework. It provides basic form input building blocks and a flexible Latte template for rendering Bootstrap 5 styled forms.

[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://raw.githubusercontent.com/drago-ex/form/main/license)[![PHP version](https://camo.githubusercontent.com/db230349e63d81e4ca563bfd9dd232cb00d99c0f989050e2f5493e8d29465c79/68747470733a2f2f62616467652e667572792e696f2f70682f647261676f2d6578253246666f726d2e737667)](https://badge.fury.io/ph/drago-ex%2Fform)[![Coding Style](https://github.com/drago-ex/form/actions/workflows/coding-style.yml/badge.svg)](https://github.com/drago-ex/form/actions/workflows/coding-style.yml)

Requirements
------------

[](#requirements)

- PHP &gt;= 8.3
- Nette Framework
- Composer
- Bootstrap
- Naja
- Node.js

Installation
------------

[](#installation)

```
composer require drago-ex/form
```

Features
--------

[](#features)

- Autocomplete enum – standard values for HTML autocomplete.
- FluentAttributes trait – fluent setters for autocomplete and placeholder.
- Forms class – extended Nette Form with helper methods:
- `addTextInput()`, `addEmailInput()`, `addPasswordInput()`, `addIntegerInput()`, `addTextAreaForm()`
- Custom inputs: Input, IntegerInput (min/max), Textarea – all support fluent attributes.

Usage
-----

[](#usage)

```
$form = new Drago\Form\Forms();

$form->addTextInput('username', 'Username')
     ->setAutocomplete(Drago\Form\Autocomplete::Username)
     ->setPlaceholder('Enter your username');

$form->addIntegerInput('age', 'Age')
     ->setMin(0)
     ->setMax(120);
```

Latte Template
--------------

[](#latte-template)

Use the provided Latte form template for a rendering form with Bootstrap 5 styling:

```
{embed 'path/to/@form.latte', name: 'register', class: 'ajax'}
     {block form}
          {include input, name: 'username', columns: 6}
          {include input, name: 'email', columns: 6}

               {include submit, name: 'send'}

     {/block}
{/embed}
```

JavaScript buttons disabled
---------------------------

[](#javascript-buttons-disabled)

Optionally, include the submitted button disabled script to prevent multiple submits on valid form:

```
import SubmitButtonDisable from 'path/to/naja.button';
```

Password hide/show
------------------

[](#password-hideshow)

```
{embed 'path/to/@form.latte', name: 'add', class: 'ajax'}
     {import 'path/to/@form-password.latte'}
     {block form}
          {include password-toggle, name: 'password', columns: 12}
     {/block}
{/embed}
```

Copy the Latte templates from assets to your project.

JavaScript show/hide password
-----------------------------

[](#javascript-showhide-password)

```
import PasswordToggle from 'path/to/naja.password';
import 'path/to/password.scss';
```

JavaScript Tom select
---------------------

[](#javascript-tom-select)

```
import TomSelectExtension from 'path/to/naja.button';
import 'path/to/tom.select.scss';
```

```
{embed 'path/to/@form.latte', name: 'add', class: 'ajax'}
     {import 'path/to/@form-tom-select.latte'}
     {block form}
          {include selectTom, name: 'tom', columns: 12, class: 'select-tom'}
     {/block}
{/embed}
```

Notes
-----

[](#notes)

- Fully compatible with Nette Forms API – all original methods remain functional.
- Fluent methods are optional; you can still use standard Nette Form controls.
- Designed for type safety and clean, readable code.

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance79

Regular maintenance activity

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

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

Every ~4 days

Total

9

Last Release

118d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5998929?v=4)[Zdeněk Papučík](/maintainers/accgit)[@accgit](https://github.com/accgit)

---

Top Contributors

[![accgit](https://avatars.githubusercontent.com/u/5998929?v=4)](https://github.com/accgit "accgit (62 commits)")

### Embed Badge

![Health badge](/badges/drago-ex-form/health.svg)

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

###  Alternatives

[contributte/forms-bootstrap

Nette extension for Bootstrap forms

211.1M4](/packages/contributte-forms-bootstrap)[tomaj/nette-bootstrap-form

Nette bootstrap form renderer

28440.4k6](/packages/tomaj-nette-bootstrap-form)[nepada/form-renderer

Latte template based form renderer for Nette forms with full support for Bootstrap 3, 4 &amp; 5.

11251.0k](/packages/nepada-form-renderer)[nextras/forms-rendering

Rendering helpers for Nette Framework Forms.

1698.4k2](/packages/nextras-forms-rendering)

PHPackages © 2026

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