承接 drago-ex/project-user 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

drago-ex/project-user

最新稳定版本:v1.0.0

Composer 安装命令:

composer require drago-ex/project-user

包简介

Type-safe user and authentication support for Drago Project.

README 文档

README

A user management and authentication package for the Drago Project. Provides secure and type-consistent access to user data, authentication, tokens, and access protection.

License: MIT PHP version Coding Style

Requirements

  • PHP >= 8.3
  • Nette Framework
  • Drago Project core packages

Main features

  • User identity management via User and UserIdentity
  • Authentication and token management via UserRepository
  • Centralized access protection via the UserRequireLogged trait
  • Type-safe exceptions and interfaces (UserIdentityException, UserToken)
  • UsersEntity data entity for working with users in the database
  • Easy integration with Nette DI

Install

composer require drago-ex/project-user

How to use

#[Inject]
public App\Core\User\UserAccess $userAccess;

In the template

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

Access to identity data

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

Secure access to the section

final class SecurePresenter extends Presenter
{
	use App\Core\User\UserRequireLogged;
}

统计信息

  • 总下载量: 39
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-12-25