PHPackages                             jansuchanek/nadmin-auth - 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. jansuchanek/nadmin-auth

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

jansuchanek/nadmin-auth
=======================

Admin user authentication, roles &amp; permission system for Nette

v1.1.0(3mo ago)031MITPHPPHP &gt;=8.2CI failing

Since Mar 20Pushed 3mo agoCompare

[ Source](https://github.com/JanSuchanek/nadmin-auth)[ Packagist](https://packagist.org/packages/jansuchanek/nadmin-auth)[ RSS](/packages/jansuchanek-nadmin-auth/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (3)Versions (3)Used By (1)

NAdmin Auth
===========

[](#nadmin-auth)

Admin authentication, roles &amp; permissions for Nette Framework.

Features
--------

[](#features)

- 🔐 **AdminAuthenticator** — Doctrine-based login with password rehash
- 🛡️ **AdminAuthorizator** — Role-based ACL with superadmin bypass
- 📋 **Interfaces** — `AdminUserInterface`, `AdminRoleInterface`, `AdminPermissionInterface`
- ⚙️ **DI Extension** — Zero-config Nette integration

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

[](#installation)

```
composer require jansuchanek/nadmin-auth
```

Configuration
-------------

[](#configuration)

```
extensions:
    nadminAuth: NAdminAuth\DI\NAdminAuthExtension

nadminAuth:
    userEntity: App\Entity\User
    roleEntity: App\Entity\Role
```

Usage
-----

[](#usage)

Your entities must implement the provided interfaces:

```
use NAdminAuth\Entity\AdminUserInterface;

class User implements AdminUserInterface
{
    public function getId(): ?int { /* ... */ }
    public function getEmail(): string { /* ... */ }
    public function getPasswordHash(): string { /* ... */ }
    public function setPasswordHash(string $hash): void { /* ... */ }
    public function getFullName(): string { /* ... */ }
    public function isActive(): bool { /* ... */ }
    public function getLocale(): string { /* ... */ }
    public function getRole(): ?AdminRoleInterface { /* ... */ }
}
```

Testing
-------

[](#testing)

```
vendor/bin/phpunit libs/nadmin-auth/tests/
```

13 tests, 31 assertions.

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

[](#requirements)

- PHP &gt;= 8.2
- Nette Security ^3.2
- Doctrine ORM ^3.0

License
-------

[](#license)

MIT

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance82

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity47

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

Every ~0 days

Total

2

Last Release

95d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/38ce2f53e74d810d50aca863e1a3b954f34f1629dd01a6a8c7d4d582e7459e63?d=identicon)[JanSuchanek](/maintainers/JanSuchanek)

---

Top Contributors

[![JanSuchanek](https://avatars.githubusercontent.com/u/310020?v=4)](https://github.com/JanSuchanek "JanSuchanek (6 commits)")

### Embed Badge

![Health badge](/badges/jansuchanek-nadmin-auth/health.svg)

```
[![Health](https://phpackages.com/badges/jansuchanek-nadmin-auth/health.svg)](https://phpackages.com/packages/jansuchanek-nadmin-auth)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.5M373](/packages/easycorp-easyadmin-bundle)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1155.2k](/packages/rcsofttech-audit-trail-bundle)

PHPackages © 2026

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