PHPackages                             drago-ex/project-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. drago-ex/project-auth

ActiveDrago-tools-resource[Authentication &amp; Authorization](/categories/authentication)

drago-ex/project-auth
=====================

Authentication and user access package for the Drago project.

v2.1.2(4d ago)02312MITPHPPHP &gt;=8.3 &lt;9CI passing

Since Dec 29Pushed 1w agoCompare

[ Source](https://github.com/drago-ex/project-auth)[ Packagist](https://packagist.org/packages/drago-ex/project-auth)[ RSS](/packages/drago-ex-project-auth/feed)WikiDiscussions main Synced today

READMEChangelog (10)Dependencies (77)Versions (45)Used By (2)

Drago Project Auth
==================

[](#drago-project-auth)

Authentication and user access package for the Drago project. This package provides a complete authentication layer including user login, registration, password recovery and access control. It is designed as a modular extension for projects built on top of the Drago ecosystem and Nette Framework.

[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://github.com/drago-ex/project-auth/blob/main/license)[![PHP version](https://camo.githubusercontent.com/3686e1b388ddd457dd681623bc9bb34c174e5ecaf2dfc7269ee7a1d575dd2889/68747470733a2f2f62616467652e667572792e696f2f70682f647261676f2d657825324670726f6a6563742d617574682e737667)](https://badge.fury.io/ph/drago-ex%2Fproject-auth)[![Coding Style](https://github.com/drago-ex/project-auth/actions/workflows/coding-style.yml/badge.svg)](https://github.com/drago-ex/project-auth/actions/workflows/coding-style.yml)

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

[](#requirements)

- PHP &gt;= 8.3
- Nette Framework
- Composer
- Bootstrap
- Naja
- Node.js
- Drago Project core packages

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

[](#installation)

```
composer require drago-ex/project-auth
```

### npm Installation

[](#npm-installation)

The authentication UI requires the theme switcher for proper functionality:

```
npm install theme-switcher-compostrap
```

Project files
-------------

[](#project-files)

File copying is handled automatically by [drago-ex/project-tools](https://github.com/drago-ex/project-tools), which must be installed in your project. Without it, copy the files manually according to the `copy` section in this package's `composer.json`. To skip this package, set `"skip": true` under `extra.drago-tools.packages.` in your root `composer.json`.

Features
--------

[](#features)

- User authentication (sign in / sign out)
- User registration (sign up)
- Password recovery and reset
- User identity handling
- Integration with Nette Security and DI
- Ready-to-use authentication UI components

Adds a new user to the database
-------------------------------

[](#adds-a-new-user-to-the-database)

Hashes the password, generates a token, and ensures the email is unique.

```
php vendor/bin/create-user
```

Secure access to the section
----------------------------

[](#secure-access-to-the-section)

```
use App\Presentation\Accessory\RequireLogged;
use Nette\Application\UI\Presenter;

final class SecurePresenter extends Presenter
{
	use RequireLogged;
}
```

Generate permission provider
----------------------------

[](#generate-permission-provider)

If you use project ACL (drago-ex/permission), you can generate a module permission class:

```
php vendor/bin/create-auth-permission
```

Database migration
------------------

[](#database-migration)

```
php vendor/bin/migration db:migrate vendor/drago-ex/project-auth/migrations
```

Automated setup
---------------

[](#automated-setup)

This package exposes setup commands in `composer.json` under `extra.drago-tools.commands`. If [drago-ex/project-tools](https://github.com/drago-ex/project-tools) is installed, you can run them from the project root:

```
php vendor/bin/drago-setup
```

###  Health Score

49

—

FairBetter than 94% of packages

Maintenance98

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

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

Total

44

Last Release

4d ago

Major Versions

v1.1.6 → v2.0.02026-05-30

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5998929?v=4)[Zdeněk Papučík](/maintainers/accgit)[@accgit](https://github.com/accgit)

---

Top Contributors

[![accgit](https://avatars.githubusercontent.com/u/5998929?v=4)](https://github.com/accgit "accgit (233 commits)")

---

Tags

authenticationnetteproject

### Embed Badge

![Health badge](/badges/drago-ex-project-auth/health.svg)

```
[![Health](https://phpackages.com/badges/drago-ex-project-auth/health.svg)](https://phpackages.com/packages/drago-ex-project-auth)
```

###  Alternatives

[nette/web-project

Nette: Standard Web Project

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

PHPackages © 2026

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