waaseyaa/user

User entity, authentication, and session management for Waaseyaa

Maintainers

Package info

github.com/waaseyaa/user

pkg:composer/waaseyaa/user

Statistics

Installs: 178

Dependents: 3

Suggesters: 0

Stars: 0

Open Issues: 0

v0.1.0-alpha.7 2026-03-15 03:34 UTC

This package is auto-updated.

Last update: 2026-03-15 16:00:50 UTC


README

Layer 1 — Core Data

User entity type and authentication middleware for Waaseyaa applications.

Defines the user entity type. SessionMiddleware reads $_SESSION['waaseyaa_uid'] and sets _account on the request (anonymous via AnonymousUser with id: 0 when no session). Includes CsrfMiddleware for form protection. AnonymousUser and DevAdminAccount (id: PHP_INT_MAX, gated to cli-server SAPI) are the system sentinel accounts.

Key classes: User, AnonymousUser, SessionMiddleware, CsrfMiddleware, UserServiceProvider.