spiral/auth-http
Spiral auth-http provides HTTP authentication middleware and token transports for Spiral apps. Integrate auth into request pipelines and pass credentials via headers or other HTTP mechanisms, with strong typing, tests, and framework-friendly setup.
Architecture fit is poor as this package is specifically designed for Spiral Framework's middleware pipeline, DI container, and request/response handling. Laravel uses fundamentally different abstractions (e.g., Illuminate\Http, PSR-15 middleware, and Laravel-specific service containers) with incompatible internal structures. The package relies on Spiral-specific components like Spiral\Bootloader\AuthBootloader and Spiral\Auth\GuardInterface which do not exist in Laravel. Integration feasibility is near-zero without massive rewrites. Technical risk is extremely high due to potential conflicts with Laravel's native auth system (e.g., Auth facade, Route::middleware('auth')), security vulnerabilities from improper adaptation, and lack of test coverage for Laravel environments. Key questions: Why consider a Spiral-specific package for Laravel when Laravel offers robust native auth (Sanctum, Passport, built-in guards)? What specific functionality is missing in Laravel's ecosystem that this package would address?
Stack fit is nonexistent – Laravel's middleware stack expects PSR-15 middleware implementations and Laravel-specific contract interfaces, while this package uses Spiral's custom middleware interface and bootstrapping system. Migration path is infeasible; the package cannot be "plugged in" without rebuilding core components from scratch. Compatibility is zero with Laravel's Illuminate\Auth namespace, session handling, or token drivers (e.g., JWT, Sanctum). Sequencing is irrelevant as no viable integration path exists – attempting to force compatibility would require duplicating entire Laravel auth subsystems within the package, negating any value.
Maintenance would be unsustainable due to constant divergence from both Spiral and Laravel updates. The package hasn't been updated since 2020, and its spiral/framework dependency is tightly coupled to Spiral's internal changes. Support would be nonexistent – the community has no experience supporting this package in Laravel contexts, and maintainers only support Spiral environments. Scaling would be impaired as the package lacks Laravel-specific optimizations for distributed caching, queue-driven token validation, or horizontal scaling patterns. Failure modes include broken authentication flows, security holes from misconfigured guards, and cascading failures during Laravel framework upgrades. Ramp-up would require developers to master both Spiral and Laravel internals simultaneously, creating a steep learning curve with no documented use cases for this hybrid scenario.
How can I help you explore Laravel packages today?