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

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

drago-ex/project-user
=====================

A small helper package for working with the authenticated user in Drago project.

v2.0.1(1mo ago)01443MITPHPPHP &gt;=8.3 &lt;9CI failing

Since Dec 29Pushed 1mo agoCompare

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

READMEChangelog (8)Dependencies (12)Versions (6)Used By (3)

Drago Project user
==================

[](#drago-project-user)

A small helper package for working with the authenticated user in Drago project. Provides type-safe access to identity data and a simple, extensible user identity object.

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

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

[](#requirements)

- PHP &gt;= 8.3
- Nette Framework
- Drago Project core packages

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

[](#installation)

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

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`.

Examples
--------

[](#examples)

Injecting the user service:

```
use App\Core\Security\CurrentUser;
use Nette\DI\Attributes\Inject;

final class SomePresenter extends Presenter
{
	#[Inject]
	public CurrentUser $currentUser;

	protected function beforeRender(): void
	{
		parent::beforeRender();
		$this->template->currentUser = $this->currentUser;
	}
}
```

Identity data in latte
----------------------

[](#identity-data-in-latte)

```
{varType App\Core\Security\CurrentUser $currentUser}
{block content}
	{$currentUser->getUserIdentity()->username}
{/block}
```

User identity object
--------------------

[](#user-identity-object)

For common identity fields, use the typed UserIdentity object:

```
$identity = $currentUser->getUserIdentity();

echo $identity->username;
echo $identity->email;
```

The UserIdentity class is intentionally simple and can be extended with additional attributes (e.g. id, roles, permissions) as needed.

UserIdentityException is thrown when identity data is missing or invalid.

Notes
-----

[](#notes)

- This package does not handle authentication or authorization.
- Focused only on safe and convenient access to user identity data.

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance94

Actively maintained with recent releases

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity54

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

Total

5

Last Release

33d ago

Major Versions

v1.0.2 → 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 (58 commits)")

### Embed Badge

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

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

PHPackages © 2026

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