PHPackages                             valicek1/nestraps - 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. valicek1/nestraps

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

valicek1/nestraps
=================

Nestraps - Twitter bootstrap renderer for Nette Framework (without assets)

v1.1.7(6y ago)03.5kLGPL-2.0-or-laterHTMLPHP &gt;=5.3.2

Since Jul 26Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Valicek1/nestraps)[ Packagist](https://packagist.org/packages/valicek1/nestraps)[ Docs](http://github.com/Valicek1/nestraps)[ RSS](/packages/valicek1-nestraps/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (1)Versions (9)Used By (0)

Bootstrap / Zurb Foundation forms for Nette Framework
=====================================================

[](#bootstrap--zurb-foundation-forms-for-nette-framework)

Originally forked from [foglcz/nestraps](https://github.com/foglcz/nestraps)

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

[](#installation)

```
$ composer require valicek1/nestraps

```

How to use in nette
-------------------

[](#how-to-use-in-nette)

Update your `config.neon`:

```
    factories:
        form:
            parameters: [type]
            class: \Nette\Application\UI\Form
            setup:
                - setRenderer(\foglcz\Nestraps(%type%, @latte.templateFactory))

```

And then in your presenter:

```
public function createComponentYourFormName($name) {
    $form = $this->getContext()->createForm(\foglcz\Nestraps::BOOTSTRAP);
    $form = $this->getContext()->createForm(\foglcz\Nestraps::FOUNDATION);
    // ...
}
```

What is it
==========

[](#what-is-it)

Nestraps is a replacement for conventional renderer in Nette Framework. Basically, all it does is that it takes given .latte file &amp; sends the form there.

The .latte file can be written in any way - how you want it.

Twitter Bootstrap style
=======================

[](#twitter-bootstrap-style)

Detailed documentation is pending; for now proceed to HomepagePresenter in showcase:

OVERLOADING:
------------

[](#overloading)

Don't really worry about manually editing this file -- altough it's possible, much cleaner approach is to create your own template with following markup:

```
  {layout 'path/to/bootstrap.latte'}
  {define #TextInput}{/define}

```

If you want to overload some field but not overload the input globally, use following:

`$field->setOption('latte', 'path/to/your/overloaded.latte');`

... or:

`$field->setOption('blockname', 'nameOfYourDefineBlockWithoutHash');`

NOTE:
-----

[](#note)

In the template, the hidden fields are rendered as last. The easiest way to extend any field is:

`$form->addHidden(...)->setOption('latte', 'path/to/your/field.latte')`

License
-------

[](#license)

LGPL.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 59.4% 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 ~405 days

Recently: every ~343 days

Total

8

Last Release

2250d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1eaedfaacd6b8838a196e8ac28cc1162bbfb2b999b9b0d72d5a3a1a72f4cd106?d=identicon)[Valicek1](/maintainers/Valicek1)

---

Top Contributors

[![foglcz](https://avatars.githubusercontent.com/u/767839?v=4)](https://github.com/foglcz "foglcz (19 commits)")[![Valicek1](https://avatars.githubusercontent.com/u/2713846?v=4)](https://github.com/Valicek1 "Valicek1 (13 commits)")

---

Tags

nettebootstrapForms

### Embed Badge

![Health badge](/badges/valicek1-nestraps/health.svg)

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

###  Alternatives

[contributte/forms-bootstrap

Nette extension for Bootstrap forms

211.1M4](/packages/contributte-forms-bootstrap)[nepada/form-renderer

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

11252.5k](/packages/nepada-form-renderer)[tomaj/nette-bootstrap-form

Nette bootstrap form renderer

28450.6k8](/packages/tomaj-nette-bootstrap-form)[metalogico/laravel-formello

A Laravel package for generating Bootstrap 5 and Tailwind CSS 4 forms based on models

1003.2k](/packages/metalogico-laravel-formello)[nextras/forms-rendering

Rendering helpers for Nette Framework Forms.

16102.5k2](/packages/nextras-forms-rendering)[galahad/bootforms

Form builder with Bootstrap-specific conveniences. Remembers old input, retrieves error messages and handles all your boilerplate Bootstrap markup automatically.

1062.3k](/packages/galahad-bootforms)

PHPackages © 2026

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