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

ActiveLibrary

geniv/nette-macros
==================

Latte macros extension for Nette Framework

v1.1.0(7y ago)01.1kMITPHPPHP &gt;=5.6.0

Since Jul 18Pushed 7y ago1 watchersCompare

[ Source](https://github.com/geniv/nette-macros)[ Packagist](https://packagist.org/packages/geniv/nette-macros)[ RSS](/packages/geniv-nette-macros/feed)WikiDiscussions master Synced 3d ago

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

Macros
======

[](#macros)

Latte macros

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

[](#installation)

```
$ composer require geniv/nette-macros
```

or

```
"geniv/nette-macros": ">=1.0.0"
```

require:

```
"php": ">=5.6.0",
"nette/nette": ">=2.4.0"
```

Include in application
----------------------

[](#include-in-application)

neon configure:

```
extensions:
    - Macros\Bridges\Nette\Extension
```

IfCurrent (n:class="$presenter-&gt;linkCurrent ? ..."):

```
aktivni sekce Homepage:default
{ifCurrent 'Homepage:default'}aktivni sekce Homepage:default{/ifCurrent}
```

IfCurrentIn:

```
Hello, n:macro
{ifCurrentIn 'News:default', 'Homepage:default'}Hello, standart macro{/ifCurrentIn}
```

IfCurrentSwitch:

```
{ifCurrentSwitch}
    {ifCurrentCase 'Homepage:default'}
        layout-variant-hp
    {ifCurrentCase 'Homepage:vzor'}
        layout-variant-location
    {ifCurrentDefault}
        layout-variant-sub
{/ifCurrentSwitch}
```

SubmitButton:

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

        {caption}
    {/button}
{/form}

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

		{caption}
	{/button}
{/form}
```

Confirm:

```
delete
delete
```

DataStream:

```
{dataStream}/www/images/logo.png{/dataStream}
```

*if image does not exist then result null*

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

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

Recently: every ~14 days

Total

11

Last Release

2872d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bc7e200eb4e96d99020297684063209160ea1347d8a2a8b4cd769d532204867e?d=identicon)[geniv](/maintainers/geniv)

---

Top Contributors

[![geniv](https://avatars.githubusercontent.com/u/563659?v=4)](https://github.com/geniv "geniv (35 commits)")

---

Tags

nettelattemacrogeniv

### Embed Badge

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

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

PHPackages © 2026

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