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

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

foglcz/nestraps
===============

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

v1.0.1(13y ago)154075[1 issues](https://github.com/foglcz/nestraps/issues)LGPLPHPPHP &gt;=5.3.2

Since Jul 26Pushed 12y ago4 watchersCompare

[ Source](https://github.com/foglcz/nestraps)[ Packagist](https://packagist.org/packages/foglcz/nestraps)[ Docs](http://github.com/foglcz/nestraps)[ RSS](/packages/foglcz-nestraps/feed)WikiDiscussions master Synced 5d ago

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

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

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

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

[](#installation)

```
$ composer require foglcz/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%, @cacheStorage))

```

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

31

—

LowBetter than 68% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity59

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 ~20 days

Total

2

Last Release

5021d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/767839?v=4)[Pavel Ptacek](/maintainers/foglcz)[@foglcz](https://github.com/foglcz)

---

Top Contributors

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

---

Tags

nettebootstrapForms

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/foglcz-nestraps/health.svg)](https://phpackages.com/packages/foglcz-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.

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

Nette bootstrap form renderer

28440.4k6](/packages/tomaj-nette-bootstrap-form)[nextras/forms-rendering

Rendering helpers for Nette Framework Forms.

1698.4k2](/packages/nextras-forms-rendering)[metalogico/laravel-formello

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

1012.2k](/packages/metalogico-laravel-formello)[galahad/bootforms

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

1161.6k](/packages/galahad-bootforms)

PHPackages © 2026

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