PHPackages                             zeleznypa/nette-button-macros - 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. zeleznypa/nette-button-macros

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

zeleznypa/nette-button-macros
=============================

Add support of pair latte macro "button" for render form control SubmitButton as &lt;button&gt;. It can be useful for Twitter bootstrap design.

1.0.0(12y ago)31544WTFPLPHPPHP &gt;=5.3.0

Since Aug 5Pushed 10y ago2 watchersCompare

[ Source](https://github.com/zeleznypa/nette-button-macros)[ Packagist](https://packagist.org/packages/zeleznypa/nette-button-macros)[ RSS](/packages/zeleznypa-nette-button-macros/feed)WikiDiscussions master Synced 2mo ago

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

\#nette-button-macros (cc)# Pavel Železný (2bfree), 2013 ([pavelzelezny.cz](http://pavelzelezny.cz))

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

[](#requirements)

[Nette Framework 2.0.7](http://nette.org) or higher. PHP 5.3 edition

Documentation
-------------

[](#documentation)

Add support of pair latte macro "button" for render form control SubmitButton as . It can be useful for Twitter bootstrap design.

Instalation
-----------

[](#instalation)

Prefered way to intall is by [Composer](http://getcomposer.org)

```
{
	"require":{
		"zeleznypa/nette-button-macros": "dev-master"
	}
}

```

Setup
-----

[](#setup)

Add following code into neon.conf

```
latte:
	macros:
		- \Zeleznypa\Nette\Latte\Macros\FormMacros::install

```

Usage
-----

[](#usage)

In latte template you can use following code

```
{form formName}
	{button controlName class=>"btn"}

		{caption}
	{/button}
{/form}

```

Also you can use object instead the control name

```
{form formName}
	{button $_form['controlName'] class=>"btn"}

		{caption}
	{/button}
{/form}

```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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

Unknown

Total

1

Last Release

4664d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/88c4f8c7289f097b6a5bc380407eac7369976484e5d071352686e764be13b8c8?d=identicon)[zeleznypa](/maintainers/zeleznypa)

---

Top Contributors

[![zeleznypa](https://avatars.githubusercontent.com/u/1191472?v=4)](https://github.com/zeleznypa "zeleznypa (2 commits)")[![insekticid](https://avatars.githubusercontent.com/u/177340?v=4)](https://github.com/insekticid "insekticid (1 commits)")

---

Tags

nettelatte

### Embed Badge

![Health badge](/badges/zeleznypa-nette-button-macros/health.svg)

```
[![Health](https://phpackages.com/badges/zeleznypa-nette-button-macros/health.svg)](https://phpackages.com/packages/zeleznypa-nette-button-macros)
```

###  Alternatives

[contributte/latte

Extra contrib to nette/latte

111.5M2](/packages/contributte-latte)[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)[vojtech-dobes/nette-forms-inputlist

Alternative RadioList &amp; CheckboxList for Nette Framework

241.2k](/packages/vojtech-dobes-nette-forms-inputlist)[dotblue/nette-control-rendering

Multiple rendering modes for Control hierarchical structure with AJAX support.

105.4k](/packages/dotblue-nette-control-rendering)

PHPackages © 2026

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