PHPackages                             vojtech-dobes/nette-multi-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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. vojtech-dobes/nette-multi-authenticator

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

vojtech-dobes/nette-multi-authenticator
=======================================

Allows definition of multiple authentication ways with unified API (for Nette Framework).

v2.0.0(11y ago)374.7k3New BSDPHPPHP &gt;=5.3.2

Since Nov 8Pushed 11y ago4 watchersCompare

[ Source](https://github.com/vojtech-dobes/nette-multi-authenticator)[ Packagist](https://packagist.org/packages/vojtech-dobes/nette-multi-authenticator)[ Docs](http://github.com/vojtech-dobes/nette-multi-authenticator)[ RSS](/packages/vojtech-dobes-nette-multi-authenticator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (7)Used By (0)

For Nette Framework
-------------------

[](#for-nette-framework)

Allows definition of multiple authentication ways with unified API (for Nette Framework)

##### License

[](#license)

[New BSD](http://choosealicense.com/licenses/bsd-3-clause/)

##### Dependencies

[](#dependencies)

Nette 2.0 or newer

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

[](#installation)

None, really :).

Usage
-----

[](#usage)

Write your authenticators, but don't make them implement `Nette\Security\IAuthenticator`. On the other hand, request `Nette\Security\User` service as dependency.

```
class CredentialsAuthenticator
{

    /** @var Nette\Security\User */
    private $user;

    public function __construct(Nette\Security\User $user)
    {
        $this->user = $user;
    }

}
```

Now write your login method. Be creative!

```
public function login($username, $password)
{
    // ... your logic

    $this->user->login(new Identity( ... ));
}
```

Register your authenticator as service:

```
services:
    - CredentialsAuthenticator
```

And you're done.

For authentication, you should use the specific authenticator:

```
class SignPresenter extends Nette\Application\UI\Presenter
{

    /** @var CredentialsAuthenticator @inject */
    public $credentialsAuthenticator;

    // ...

    public function processLoginForm($form)
    {
        $values = $form->getValues();
        $this->credentialsAuthenticator->login($values->username, $values->password);
    }

}
```

The point is: use normal dependencies and wrap `Nette\Security\User` in them, not the other way around.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 82.4% 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 ~112 days

Recently: every ~140 days

Total

6

Last Release

4366d ago

Major Versions

v1.0.4 → v2.0.02014-05-27

### Community

Maintainers

![](https://www.gravatar.com/avatar/920689f25a0fc31b2807556eddd47203f33c4318893bce98818cf2f3e627ee8e?d=identicon)[vojtechdobes](/maintainers/vojtechdobes)

---

Top Contributors

[![vojtech-dobes](https://avatars.githubusercontent.com/u/415925?v=4)](https://github.com/vojtech-dobes "vojtech-dobes (14 commits)")[![Majkl578](https://avatars.githubusercontent.com/u/144181?v=4)](https://github.com/Majkl578 "Majkl578 (3 commits)")

---

Tags

nettesecurityAuthentication

### Embed Badge

![Health badge](/badges/vojtech-dobes-nette-multi-authenticator/health.svg)

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

###  Alternatives

[lusitanian/oauth

PHP 7.2 oAuth 1/2 Library

1.1k23.2M120](/packages/lusitanian-oauth)

PHPackages © 2026

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