drago-ex / project-auth
Authentication and user access package for the Drago project.
Installs: 39
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:drago-project-resource
pkg:composer/drago-ex/project-auth
Requires
- php: >=8.3 <9
- drago-ex/application: ^1.0
- drago-ex/database: ^2.0
- drago-ex/form: ^1.0
- drago-ex/permission: ^1.0
- drago-ex/project-backend: ^1.0
- drago-ex/project-front: ^1.0
- drago-ex/project-user: ^1.0
- drago-ex/translator: ^2.0
- drago-ex/utils: ^1.0
- nette/mail: ^4.0
Requires (Dev)
- phpstan/phpstan-nette: ^1.2.9
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
- Drago Project core packages
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
Install
composer require drago-ex/project-auth
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; }
Database migration
php vendor/bin/migration db:migrate vendor/drago-ex/project-auth/migrations