aescarcha/oauth
Symfony OAuth server bundle integrating FOSOAuthServer with FOSUser, FOSRest, JMS Serializer, and NelmioApiDoc. Provides routes and configuration to expose JSON-based API authentication and documentation.
league/oauth2-server), but this package introduces additional dependencies (e.g., friendsofsymfony/*, nelmio/api-doc) that may not be native to Laravel.FOSRestBundle, NelmioApiDocBundle), which may conflict with Laravel’s native routing, HTTP handling, or service container.Route::group).| Risk Area | Severity | Mitigation Strategy |
|---|---|---|
| Symfony-Laravel Gap | High | Abstract Symfony dependencies via interfaces or rewrite critical components. |
| Dependency Bloat | Medium | Audit and replace non-essential bundles (e.g., NelmioApiDoc → Laravel’s laravel/api-docs). |
| Maintenance Overhead | High | Fork the repo or contribute upstream for Laravel support. |
| Security Risks | Medium | Validate OAuth implementation against RFC 6749 and Laravel’s security best practices. |
| Performance Impact | Low | Benchmark against league/oauth2-server (native Laravel option). |
league/oauth2-server?
FOSUserBundle, NelmioApiDoc) mandatory, or can they be replaced?league/oauth2-server (Laravel-friendly).spatie/laravel-oauth-server (Laravel-specific).| Component | Laravel Native | Symfony Bundle | Adaptation Needed |
|---|---|---|---|
| OAuth2 Server | ✅ (Passport) | ✅ | Rewrite or abstract |
| REST API | ✅ (Lumen/Route) | ✅ (FOSRest) | Replace with Laravel routes |
| API Documentation | ✅ (Laravel API Docs) | ✅ (Nelmio) | Replace or integrate |
| User Management | ✅ (Laravel Breeze) | ✅ (FOSUser) | Replace with Laravel Auth |
| Serialization | ✅ (Laravel) | ✅ (JMS) | Replace with Laravel’s |
league/oauth2-server as the core.spatie/laravel-api-docs).symfony/http-foundation, symfony/dependency-injection) to integrate the bundle as a sub-component.// config/app.php
'providers' => [
// ...
Symfony\Component\HttpKernel\Kernel::class,
Aescarcha\OauthServerBundle\DependencyInjection\AescarchaOauthServerExtension::class,
];
league/oauth2-server.routing.yml; Laravel uses routes/web.php or API routes.Route::prefix('oauth')->group(...).services.yml to Laravel’s bind()/singleton() in AppServiceProvider.EventDispatcher → Laravel’s middleware pipeline.Illuminate\Auth\Middleware\Authenticate.league/oauth2-server.debug:container → Laravel’s php artisan container:dump or tinker.laravel-debugbar.EventDispatcher issues) may require Symfony expertise.NelmioApiDoc is heavier than Laravel’s spatie/api-docs./oauth/token and /oauth/authorize endpoints.How can I help you explore Laravel packages today?