PHPackages                             sandbox/passwordrecovery - 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. sandbox/passwordrecovery

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

sandbox/passwordrecovery
========================

Password recovery Nette extension.

v2.0.1(2y ago)19491MITPHPPHP &gt;= 8.1.0

Since Jan 22Pushed 2y ago1 watchersCompare

[ Source](https://github.com/ViPErCZ/passwordRecovery)[ Packagist](https://packagist.org/packages/sandbox/passwordrecovery)[ Docs](http://vipersoftware.net)[ RSS](/packages/sandbox-passwordrecovery/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (8)Versions (10)Used By (1)

\#Password recovery extension for Nette Framework
=================================================

[](#password-recovery-extension-for-nette-framework)

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

[](#requirements)

Sandbox/PasswordRecovery requires PHP 8.1.0 or higher.

- "nette/application": "^3.1",
- "nette/bootstrap": "^3.2",
- "nette/di": "^3.1",
- "nette/forms": "^3.1",
- "nette/mail": "^4.0",
- "nette/robot-loader": "^4.0",
- "nette/utils": "^4.0",
- "latte/latte": "^3.0"

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

[](#installation)

The best way to install Sandbox/PasswordRecovery is using [Composer](http://getcomposer.org/):

```
$ composer require sandbox/passwordrecovery
```

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

[](#configuration)

Then you have to register extension in config.neon.

```
extensions:
    passwordRecovery: Sandbox\PasswordRecovery\DI\PasswordRecoveryExtension
```

and configuration section in config.neon:

```
passwordRecovery:
    passwordRecovery:
    sender: "sandbox@domain.net"
    subject: "Obnova hesla"
    submitButton: "Obnovit heslo"
    validatorMessage: "Prosím vložte validní heslo."
    equalPasswordMessage: "Hesla se musí shodovat."
    emptyPasswordMessage: "Heslo musí obsahovat alespoň %d znaků"
    minimalPasswordLength: 6
    expirationTime: 45 #minute, max 59
    errorMessage: "Odkaz pro obnovu hesla se nepodařilo odeslat. Zkuste to prosím znovu."
    mailer: @mail.mailer
    token: @Sandbox\PasswordRecovery\TokenManagerInterface
```

Next, you need to register a service that implements an interface UserRepositoryInterface and TokenManagerInterface. Example is sandbox project:

Usage
-----

[](#usage)

Sample using in Presenter:

```
/**
 * @return \Nette\Application\UI\Form
*/
protected function createComponentRecovery() {
	$control = $this->passwordRecovery->createDialog();
	$control->getResetForm()->onSuccess[] = function(Form $form) {
		$this->flashMessage('Odkaz pro obnovu hesla byl odeslán na Váš email ' . $form->getValues()['email'] . ".");
		$this->redrawControl('recoveryForm');
	};

	$control->getResetForm()->onError[] = function() {
		$this->redrawControl('recoveryForm');
	};

	$control->getNewPasswordForm()->onSuccess[] = function() {
		$this->flashMessage('Heslo bylo úspěšně nastaveno. Pokračujte na přihlašovací obrazovku.');
		if ($this->isAjax()) {
           $this->redrawControl('recoveryForm');
        } else {
           $this->redirect('Home:default');
        }
	};

	$control->getNewPasswordForm()->onError[] = function() {
		if ($this->isAjax()) {
           $this->redrawControl('recoveryForm');
        } else {
           $this->redirect('Home:default');
        }
	};

	return $control;
}
```

and template has default template (using twitter bootstrap class)

```
{snippet recoveryForm}
	{$flash->message}
	{if count($flashes) == 0}
		{control recovery}
	{/if}
{/snippet}
```

If you want to use your custom template, set the variable **templatePath** to the path to the latte template.

Extension using Nette\\Localization\\Translator and all configurated strings are translated.

---

Homepage  and repository .

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity78

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

Recently: every ~710 days

Total

8

Last Release

973d ago

Major Versions

v1.2.0 → v2.0.02023-11-04

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

v2.0.0PHP &gt;= 8.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/1859e3990ee12f48cf66b7047b6aaeb89d330a2f05afba1520def109c4f2f1bd?d=identicon)[ViPEr\*CZ\*](/maintainers/ViPEr*CZ*)

---

Top Contributors

[![ViPErCZ](https://avatars.githubusercontent.com/u/1502711?v=4)](https://github.com/ViPErCZ "ViPErCZ (24 commits)")

### Embed Badge

![Health badge](/badges/sandbox-passwordrecovery/health.svg)

```
[![Health](https://phpackages.com/badges/sandbox-passwordrecovery/health.svg)](https://phpackages.com/packages/sandbox-passwordrecovery)
```

###  Alternatives

[nette/web-project

Nette: Standard Web Project

10993.3k](/packages/nette-web-project)[nette/code-checker

✅ Nette CodeChecker: A simple tool to check source code against a set of Nette coding standards.

911.7M6](/packages/nette-code-checker)

PHPackages © 2026

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