mrdanshur/user-bundle
mrdanshur/user-bundle is a Laravel package that provides a ready-made user management layer, including authentication scaffolding, profile handling, and role-based access helpers. It aims to speed up adding users, permissions, and account features to new or existing PHP applications.
FOSUserBundle is explicitly Symfony-only (Doctrine ORM/ODM, Symfony's security firewall, Symfony DI container). Any Laravel-side product decision here is a category error; the equivalent Laravel decisions are Breeze/Jetstream/Fortify plus Sanctum or Passport.MrDanshur/FOSUserBundle) republishes a well-known abandoned package under a different Packagist vendor. Regardless of intent, that pattern is indistinguishable from typosquatting and warrants a "do not install without a code review" ruling.Consider it only if all of the following hold:
Look elsewhere — decisively — when any of these are true:
laravel/breeze or laravel/jetstream (which pull in Fortify), laravel/sanctum for SPA/mobile tokens, or laravel/passport for full OAuth2.symfony/security-bundle with maker-bundle (make:user, make:auth, make:registration-form). You get first-party maintenance, docs, and a CVE channel for free.lexik/jwt-authentication-bundle (Symfony) or Sanctum (Laravel).scheb/2fa-bundle, knpu/oauth2-client-bundle, or a managed IdP (Auth0, WorkOS, Cognito, Keycloak). Buying identity is cheaper than forking it.To executives: We evaluated a community fork of a retired user-login library. It is not a product or a vendor — it is one person's copy of an abandoned project, with zero downstream users and no release in over three years. Recommending against it. Authentication is the front door to customer data, so it belongs inside our security and compliance perimeter, and this dependency would sit outside it with no patching path. The alternative is to use the frameworks' first-party, actively maintained auth components at effectively the same build cost — roughly a few engineering days — which is cheaper than owning a fork forever.
To engineering: This is a Symfony bundle (FOSUserBundle fork), so it is not applicable to our Laravel services. Where a Symfony app is still on FOSUserBundle: do not adopt the fork by default; instead run a timeboxed spike comparing (a) symfony/security-bundle + MakerBundle's make:user/make:auth and (b) migrating to a managed IdP if SSO/2FA is on the roadmap. If we do take the fork as a stopgap, we diff it against upstream, pin the commit in composer.json, add it to the dependency-review and advisory watchlist, and file a ticket with a hard removal date. Estimated effort: 2–4 days for the native path, 1 day plus permanent ownership for the fork.
Bottom line: Do not adopt. Treat this repo as a signal that our FOSUserBundle dependency is end-of-life and fund the migration.
How can I help you explore Laravel packages today?