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

v1.0.10 2026-01-14 08:16 UTC

This package is auto-updated.

Last update: 2026-01-14 08:46:26 UTC


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.

License: MIT PHP version Coding Style

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