waaseyaa / user
User entity, authentication, and session management for Waaseyaa
v0.1.0-alpha.7
2026-03-15 03:34 UTC
Requires
- php: >=8.3
- symfony/http-foundation: ^7.0
- waaseyaa/access: ^0.1
- waaseyaa/entity: ^0.1
- waaseyaa/foundation: ^0.1
Requires (Dev)
- phpunit/phpunit: ^10.5
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.