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

AbandonedArchivedLibrary

geniv/nette-authenticator
=========================

Identity extension for Nette Framework

v1.1.9(8y ago)0210MITPHPPHP &gt;=5.6.0

Since Jul 15Pushed 8y ago1 watchersCompare

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

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

Security user authenticator
===========================

[](#security-user-authenticator)

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

[](#installation)

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

or

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

require:

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

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

[](#include-in-application)

### available source drivers:

[](#available-source-drivers)

- Array (base ident: key, id, hash)
- Neon (same format like Array)
- Dibi (base ident: id, login, hash, active, role, added)
- Combine (combine driver Array, Neon, Dibi; order authenticate define combineOrder)

hash is return from: `Passwords::hash($password)`

neon configure:

```
# login
authenticator:
#   autowired: false    # default null, false => disable autowiring (in case multiple linked extension) | self
    source: "Dibi"
    tablePrefix: %tablePrefix%
#   source: "Array"
    userlist:
        Foo:
            id: 1
            hash: "@@hash!@@"
            role: guest
            username: mr Foo
        Bar:
            id: 2
            hash: "@@hash!@@"
            role: moderator
            username: mr Bar
#   source: "Neon"
#   path: %appDir%/authenticator.neon
#   source: "Combine"
#   combineOrder:
#       - Array
#       - Neon
#       - Dibi
#   classArray: Authenticator\Drivers\ArrayDriver
#   classNeon: Authenticator\Drivers\NeonDriver
#   classDibi: Authenticator\Drivers\DibiDriver
```

neon configure extension:

```
extensions:
    authenticator: Authenticator\Bridges\Nette\Extension
```

presenters:

```
use Authenticator\LoginForm;

protected function createComponentLoginForm(LoginForm $loginForm)
{
    //$loginForm->setTemplatePath(__DIR__ . '/templates/LoginForm.latte');
    // callback from $loginForm (support redirect)
    $loginForm->onLoggedIn[] = function (User $user) {
        $this->flashMessage('Login!', 'info');
        $this->redirect('this');
    };
    $loginForm->onLoggedInException[] = function (AuthenticationException $e) {
        $this->flashMessage('Login exception! ' . $e->getMessage(), 'danger');
    };
    $loginForm->onLoggedOut[] = function (User $user) {
        $this->flashMessage('Logout!', 'info');
        $this->redirect('this');
    };

    //OR

    // callback from $this->user (don't support redirect)
    $this->user->onLoggedIn[] = function (User $user) {
        $this->flashMessage('Login!', 'info');
    };
    $this->user->onLoggedOut[] = function (User $user) {
        $this->flashMessage('Logout!', 'info');
    };
    return $loginForm;
}
```

usage:

```
    {if !$user->isLoggedIn()}
        {control loginForm}
    {else}
        Logout
    {/if}
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

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

Recently: every ~20 days

Total

10

Last Release

3001d 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 (39 commits)")

---

Tags

netteuseridentityloginauthenticatorgeniv

### Embed Badge

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

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

###  Alternatives

[majkl578/nette-identity-doctrine

Integration of entities implementing IIdentity in Nette 2

28119.1k](/packages/majkl578-nette-identity-doctrine)

PHPackages © 2026

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