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

Abandoned → [nette/web-project](/?search=nette%2Fweb-project)Project[Authentication &amp; Authorization](/categories/authentication)

nette/sandbox
=============

v1.0.1(3y ago)1362.2k21[1 PRs](https://github.com/nette-examples/user-authentication/pulls)BSD-3-ClausePHPPHP &gt;=7.4

Since Oct 12Pushed 11mo ago8 watchersCompare

[ Source](https://github.com/nette-examples/user-authentication)[ Packagist](https://packagist.org/packages/nette/sandbox)[ RSS](/packages/nette-sandbox/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (11)Versions (3)Used By (0)

User Authentication (Nette example)
===================================

[](#user-authentication-nette-example)

Example of user management.

- User login, registration and logout (`SignPresenter`)
- Command line registration (`bin/create-user.php`)
- Authentication using database table (`UserFacade`)
- Password hashing
- Presenter requiring authentication (`DashboardPresenter`) using the `RequireLoggedUser` trait
- Rendering forms using Bootstrap CSS framework
- Automatic CSRF protection using a token when the user is logged in (`FormFactory`)
- Separation of form factories into independent classes (`SignInFormFactory`, `SignUpFormFactory`)
- Return to previous page after login (`SignPresenter::$backlink`)

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

[](#installation)

```
git clone https://github.com/nette-examples/user-authentication
cd user-authentication
composer install
```

Make directories `data/`, `temp/` and `log/` writable.

By default, SQLite is used as the database which is located in the `data/db.sqlite` file. If you would like to switch to a different database, configure access in the `config/local.neon` file:

```
database:
	dsn: 'mysql:host=127.0.0.1;dbname=***'
	user: ***
	password: ***
```

And then create the `users` table using SQL statements in the [data/mysql.sql](data/mysql.sql) file.

The simplest way to get started is to start the built-in PHP server in the root directory of your project:

```
php -S localhost:8000 www/index.php
```

Then visit `http://localhost:8000` in your browser to see the welcome page.

It requires PHP version 8.1 or newer.

###  Health Score

38

—

LowBetter than 84% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity51

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

Total

2

Last Release

1445d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/17f266513a3ca97500ec3d85d562b9279c7a6346358fe2b8d90390ece717a027?d=identicon)[david@grudl.com](/maintainers/david@grudl.com)

![](https://www.gravatar.com/avatar/91e1afff616c785d9e0b517037da7f4de3991fb26dea9106c84f40fe2e90d0fc?d=identicon)[juzna.cz](/maintainers/juzna.cz)

---

Top Contributors

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

---

Tags

authenticationnettenette-examplephp

### Embed Badge

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

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

###  Alternatives

[nette/nette

👪 Nette Framework - innovative framework for fast and easy development of secured web applications in PHP (metapackage)

1.6k2.8M334](/packages/nette-nette)[nette/web-project

Nette: Standard Web Project

10991.8k](/packages/nette-web-project)

PHPackages © 2026

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