Internal user and authentication system for Symfony 8.
Provides a deterministic, Doctrine-backed user model integrated with Symfony Security.
symfony-x/user defines:
- the internal user model
- authentication via Symfony Security
- password-based login
- account structure and conventions
- Doctrine persistence and migrations
This package is the foundation for any application that requires authenticated users.
- Symfony Security (authentication, firewalls)
- Doctrine ORM + Migrations
- User entity + repository
- Login/logout system
- Password hashing
- Base account structure
- OAuth / social login (see
symfony-x/user-oauth) - Admin UI
- Roles/permissions beyond basic defaults
- Business-specific user logic
composer require symfony-x/user
You will have:
- a working login system
- a
Userentity - Doctrine configured
- migrations ready
- base templates for authentication
User (Doctrine Entity) ↓ Symfony Security ↓ Authentication Session
This package owns the internal user model.
- Customize the User entity
- Add profile fields
- Override templates
- Extend security rules
- Add roles/permissions
symfony-x/user-oauth→ adds OAuth/social loginsymfony-x/admin→ admin interfacesymfony-x/security→ (future) lower-level security primitives
- deterministic structure
- minimal configuration
- no ambiguity
- aligned with Symfony best practices
- designed for AI-assisted development
- PHP 8.4+
- Symfony 8+
MIT