Illuminate\Container) and routing (Illuminate\Routing).migrate or raw SQL.EventDispatcher and Security components must be replaced with Laravel’s Illuminate\Events and Illuminate\Auth.Auth system (e.g., Illuminate\Auth\Guard) would need to delegate to BetterAuth’s logic.Symfony\Component\HttpFoundation\Session) differs from Laravel’s Illuminate\Session.Router component requires replacement with Laravel’s RouteServiceProvider.Pest/PHPUnit to validate edge cases (e.g., token rotation, multi-tenancy).symfony/http-foundation polyfills).api-platform/core) may add unnecessary complexity.| Laravel Component | BetterAuth/Symfony Equivalent | Integration Strategy |
|---|---|---|
| Eloquent ORM | Doctrine ORM | Adapter layer or raw SQL migrations |
| Illuminate\Auth | Symfony Security Component | Custom AuthManager or facade abstraction |
| Illuminate\Routing | Symfony Router | Rewrite routes or use Laravel’s Route |
| Illuminate\Events | Symfony EventDispatcher | Event listener mapping |
| Illuminate\Session | Symfony Session | Session handler middleware |
| Laravel Sanctum/Passport | OAuth/OIDC Logic | Direct feature reuse (if core library used) |
Phase 1: Assessment (2 weeks)
Phase 2: Proof of Concept (4 weeks)
betterauth/betterauth (if exists) and test OAuth/2FA in isolation.laravel-betterauth) with:
better-auth:login → auth/betterauth/login).Phase 3: Incremental Integration (8–12 weeks)
Phase 4: Testing & Optimization (4 weeks)
migrate or raw SQL. Test with PostgreSQL/MySQL first.symfony/cache) may need replacement with Laravel’s Illuminate\Cache.Request/Response objects require adapters for Laravel’s Illuminate\Http\Request.Validator component should map to Laravel’s Illuminate\Validation.symfony/security) may increase deployment size.replace or provide to minimize Symfony-specific packages.README for setup, troubleshooting, and feature gaps.session() driver.tokens table updates).How can I help you explore Laravel packages today?