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

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

geniv/nette-identity
====================

Identity class for Nette Framework

v1.1.4(6y ago)07441MITPHPPHP &gt;=7.0

Since Apr 17Pushed 6y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (4)Versions (12)Used By (1)

Identity
========

[](#identity)

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

[](#installation)

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

or

```
"geniv/nette-identity": "^1.1"
```

require:

```
"php": ">=7.0",
"nette/security": ">=2.4",
"nette/utils": ">=2.4",
"dibi/dibi": ">=3.0",
"geniv/nette-general-form": ">=1.0"
```

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

[](#include-in-application)

neon configure:

```
services:
    - Identity\IdentityModel(%tablePrefix%)
```

events:

```
## for registration
events:
    - Identity\Events\CleanUserEvent(-14 days)								# clean non active user
#    - CallbackEvent															# check duplicity
#    - SetValueEvent([active: false, role: guest])							# default value for registration
    - Identity\Events\RegistrationEvent										# core registration
    - Identity\Events\ApproveLinkEvent(+1 hour, //Registration:approve)		# generate approve link
#    admin: Identity\Events\RegistrationEmailNotifyEvent						# email for admin
#    user: Identity\Events\RegistrationEmailNotifyEvent						# email for user

## for forgotten
eventsStep1:
    - Identity\Events\ForgottenStep1Event(+1 hour, //Forgotten:reset)		# generate forgotten link
#    - Identity\Events\ForgottenEmailNotifyEvent								# email for user
eventsStep2:
    - Identity\Events\ForgottenStep2Event
```

model:

```
// usage IIdentityModel

getColumns(): array
addColumn(string $name)
setColumns(array $columns)

getList(): Fluent
getById(int $id)
getByEmail(string $email)

insert(array $values): int
update(int $id, array $values): bool
delete(int $id): bool

getHash(string $password): string
verifyHash(string $password, string $hash): bool

existLogin(string $login): int
existEmail(string $email): int

cleanUser(string $validate = null): int

getEncodeHash(int $id, string $login, string $linkValidate = null): string
getDecodeHash(string $hash): array

processApprove(string $hash): bool

isValidForgotten(string $hash): bool
processForgotten(string $hash, string $password): bool
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

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

Recently: every ~22 days

Total

10

Last Release

2552d ago

PHP version history (2 changes)v1.0.0PHP &gt;=7.0.0

v1.1.0PHP &gt;=7.0

### 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 (36 commits)")

---

Tags

netteuseridentitygeniv

### Embed Badge

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

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

###  Alternatives

[nette/security

🔑 Nette Security: provides authentication, authorization and a role-based access control management via ACL (Access Control List)

3839.3M279](/packages/nette-security)[contributte/recaptcha

Google reCAPTCHA for Nette - Forms

421.3M4](/packages/contributte-recaptcha)[foglcz/ldap-authenticator

LDAP Authenticator plugin for Nette Framework

137.2k](/packages/foglcz-ldap-authenticator)

PHPackages © 2026

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