Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Symfony Bundle Laravel Package

betterauth/symfony-bundle

View on GitHub
Deep Wiki
Context7

BetterAuth Symfony - Documentation

Modern, secure authentication for Symfony 6.4 / 7.x / 8.0 applications.

Quick Links


Table of Contents

Getting Started

Document Description
01-INSTALLATION Complete installation guide with commands
02-CONFIGURATION All configuration options explained

Authentication Modes

Document Description
03-API-MODE Stateless authentication with Paseto V4 tokens
04-SESSION-MODE Cookie-based session authentication
05-HYBRID-MODE Combined tokens + sessions

Features

Document Description
06-OAUTH-PROVIDERS Google [STABLE], GitHub, Microsoft, Facebook, Discord [DRAFT]
07-TWO-FACTOR-AUTH TOTP with Google Authenticator, Authy
08-EVENTS All events with subscriber examples

Reference

Document Description
09-API-REFERENCE All endpoints with curl examples
08-EVENTS All events with subscriber examples
20-TOKEN-EXTRACTORS Token extraction system and customization
10-ERROR-HANDLING Exceptions and error responses
11-SECURITY Best practices and hardening

Advanced

Document Description
12-TESTING Testing authentication flows
13-TROUBLESHOOTING Common issues and solutions
14-MIGRATION Migration from LexikJWT and others

Customization

Document Description
15-EMAIL-TEMPLATES Customize email templates
16-ENTITY-CUSTOMIZATION Extend User, Session entities
18-CONTROLLERS Override and customize controllers
19-CUSTOMIZATION Advanced: API versioning, multi-tenant, response formats

Feature Matrix

Feature API Mode Session Mode Hybrid Mode
Stateless tokens
Cookie sessions
Refresh tokens N/A
CSRF protection N/A
OAuth providers
2FA (TOTP)
Multi-tenant
Session tracking

Console Commands

# Installation
php bin/console better-auth:install              # Full installation wizard

# Features Setup (NEW!)
php bin/console better-auth:setup-features       # Enable/disable features with auto entity generation
php bin/console better-auth:setup-features --enable=magic_link --with-controllers --migrate

# Configuration
php bin/console better-auth:configure            # Interactive configuration wizard
php bin/console better-auth:switch-mode          # Switch authentication mode
php bin/console better-auth:generate-config      # Generate config with presets
php bin/console better-auth:cleanup:sessions     # Remove expired sessions
php bin/console better-auth:cleanup:tokens       # Remove expired refresh tokens
php bin/console better-auth:generate-secret      # Generate BETTER_AUTH_SECRET
php bin/console better-auth:publish-templates    # Publish email templates
php bin/console better-auth:user-fields          # Add/remove optional User fields

# Setup
php bin/console better-auth:setup:dependencies   # Install dependencies
php bin/console better-auth:setup:logging        # Configure logging
php bin/console better-auth:config:update        # Update configuration files
php bin/console better-auth:add-controller       # Add individual controllers

Support


Made with ❤️ by the BackToTheFutur Team

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
emuniq/filament-browser-notifications
syriable/filament-translator
hungnm28/livewire-form
wenprise/eloquent
crudly/encrypted
fadion/bouncy
cuci/prototurk-sdk
gos/pubsub-router-bundle
cuci/prototurk-sdk-symfony
clementtalleu/easyadmin-markdown-bundle
codeflextech/permission-manager
karnoweb/livewire-datepicker
sayedenam/sayed-dashboard
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui