rz/user-bundle
rz/user-bundle is a PHP user management bundle that adds user accounts, authentication, registration, and profile handling to your application. It offers configurable entities, role support, and integration-friendly setup for faster development.
First, the headline: this is not a Laravel package. rzproject/UserBundle is a Symfony bundle (RzUserBundle) built on Doctrine ORM, an FOSUserBundle-derived architecture, Symfony DI container conventions, and Symfony event dispatchers. The brief labels it "Laravel/PHP," but the naming (UserBundle), the org, and the bundle structure are Symfony idioms. If you are on Laravel, you cannot leverage it day-to-day as a dependency — a Symfony bundle does not register a Laravel service provider, does not publish Laravel config, and does not speak Eloquent. Treat this as reference material, not a package to composer require into a Laravel app.
Minimal path for a Laravel developer:
Rz\UserBundle\RzUserBundle in config/bundles.php, and configure Doctrine for the shipped User entity. That is not a Laravel use case.composer.json (to confirm it's Symfony, and see the abandoned dependencies), the bundle class and DI extension, the Entity/User model and its migration, the security/config registration, and the controllers/events for registration and password reset.users migration, an Eloquent User model, and the auth flows on top of Laravel's guard.The repository is archived, zero stars, zero dependents. There is no patch stream and no upgrade path. Plan accordingly.
Since dropping it into Laravel is off the table, the practical patterns are pattern extraction and concept mapping. The bundle's flows map cleanly to Laravel primitives:
| Bundle concept (Symfony) | Laravel equivalent |
|---|---|
Rz\UserBundle\Entity\User (Doctrine) |
Eloquent App\Models\User + migration |
Symfony security firewalls / UserProvider |
config/auth.php guards and providers |
| Registration controller + form | Breeze/Fortify registration flow |
| Password reset token flow | Laravel's Password facade and password_reset_tokens table |
Roles / groups (roles on user, hierarchy) |
spatie/laravel-permission (roles + permissions) |
| Avatar upload on profile | Laravel filesystem + a profile controller |
Workflow for a Laravel developer:
User entity: identify the fields it expects (username/email, password hash, roles, profile fields, avatar path, timestamps, enabled/locked flags). Reproduce the useful ones as an Eloquent migration.UpdateProfileRequest, a controller, a filesystem disk, and a small blade form. This is a few hours of work, not a dependency decision.If you are actually on Symfony (the only context where the bundle fits at all):
config/bundles.php.Integration tip for either context: isolate user/account concerns behind your own interface, so whatever supplies them (Laravel's guard, a managed identity provider, or this bundle) is replaceable. Auth is exactly the domain where you want an exit path.
artisan commands. Any attempt to bridge it adds a parallel runtime concern that is almost never justified — especially for an unmaintained package.config/packages/*.yaml, not Laravel's config/*.php. There are no Laravel config keys to publish, so any "config quirks" you encounter will be YAML semantics and DI tags — an unfamiliar surface for a Laravel team.Bottom line: as a Laravel developer, your day-to-day use of this package is zero code and a short, time-boxed read for schema and flow inspiration. Do not add rz/user-bundle to your dependency graph.
How can I help you explore Laravel packages today?