drago-ex/project-auth
最新稳定版本:v1.1.5
Composer 安装命令:
composer require drago-ex/project-auth
包简介
Authentication and user access package for the Drago project.
README 文档
README
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.
Requirements
- PHP >= 8.3
- Nette Framework
- Composer
- Bootstrap
- Naja
- Node.js
- Drago Project core packages
Installation
composer require drago-ex/project-auth
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 backend UI components
Adds a new user to the database
Hashes the password, generates a token, and ensures the email is unique.
php vendor/bin/create-user <username> <email> <password>
Secure access to the section
final class SecurePresenter extends Presenter { use App\UI\Backend\Sign\UserRequireLogged; }
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
php vendor/bin/migration db:migrate vendor/drago-ex/project-auth/migrations
统计信息
- 总下载量: 75
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-12-27