PHPackages                             geniv/nette-favorite - 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. [Framework](/categories/framework)
4. /
5. geniv/nette-favorite

ActiveLibrary[Framework](/categories/framework)

geniv/nette-favorite
====================

Favorite component for Nette Framework

v1.0.0(8y ago)023MITPHPPHP &gt;=7.0.0

Since Apr 26Pushed 8y ago2 watchersCompare

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

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

Favorite
========

[](#favorite)

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

[](#installation)

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

or

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

require:

```
"php": ">=7.0.0",
"nette/nette": ">=2.4.0",
"geniv/nette-general-form": ">=1.0.0"
```

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

[](#include-in-application)

neon configure services:

```
services:
    - Favorite
```

presenter usage:

```
protected function createComponentFavorite(Favorite $favorite): Favorite
{
    //$otherComponent->addComponent($favorite, 'favorite');

    // $favorite->setTemplatePath(__DIR__ . '/templates/favorite.latte');
    $favorite->setSource($this->favoriteSource);
    $favorite->onSetFavorite[] = function (int $id) {
        $this->setFavorite($id);
    };
}
```

check status:

```
$favorite->isFavorite($id);
```

latte usage:

```
{control favorite $item['id']}
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

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

Unknown

Total

1

Last Release

2941d 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 (4 commits)")

---

Tags

nettefavoritegeniv

### Embed Badge

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

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

###  Alternatives

[vojtech-dobes/nette-ajax-history

Adds History API support for Nette Framework.

30179.4k2](/packages/vojtech-dobes-nette-ajax-history)[flame/modules

Nette modules on the Steroids

1361.6k3](/packages/flame-modules)

PHPackages © 2026

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