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.

v1.0.1(4mo ago)0562MITPHPPHP &gt;=8.3 &lt;9CI passing

Since Dec 29Pushed 4mo 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 (2)Dependencies (3)Versions (3)Used By (2)

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://raw.githubusercontent.com/drago-ex/project-user/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

Install
-------

[](#install)

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

Usage
-----

[](#usage)

Injecting the user service:

```
use App\Core\User\UserAccess;
use Nette\DI\Attributes\Inject;

final class SomePresenter extends Presenter
{
	#[Inject]
	public UserAccess $userAccess;

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

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

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

```
{varType App\Core\User\UserAccess $userAccess}
{block content}
	{$userAccess->getUserIdentity()->username}
{/block}
```

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

[](#user-identity-object)

For common identity fields, use the typed UserIdentity object:

```
$identity = $userAccess->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

38

—

LowBetter than 85% of packages

Maintenance76

Regular maintenance activity

Popularity8

Limited adoption so far

Community10

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

Total

2

Last Release

128d ago

### 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 (50 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)
```

###  Alternatives

[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)
