Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
User Bundle

User Bundle Laravel Package

c975l/user-bundle

GDPR-focused user management bundle inspired by FOSUserBundle: Doctrine entities (extendable), signup/signin/profile/password reset forms, email notifications, social login (HWIOAuth), public profiles, anti-brute-force delays, Gravatar/social avatars, JS data access, and JSON API.

View on GitHub
Deep Wiki
Context7

Symfony bundle to allow users manage their data, profile, passwords, etc.

Frequently asked questions about User Bundle
Can I use c975l/user-bundle directly in Laravel without Symfony?
No, this bundle is a Symfony package and lacks native Laravel support (e.g., service providers, Blade templates, or Eloquent integration). You’d need to build a wrapper layer or adapt its Doctrine entities to Eloquent manually. Consider alternatives like Laravel Breeze or spatie/laravel-permission for seamless Laravel integration.
How do I migrate from FOSUserBundle to c975l/user-bundle in Laravel?
The bundle provides a SQL migration script for FOSUserBundle, but you’ll need to manually adapt it for Laravel’s schema migrations. Test the script in a staging environment first, as Doctrine and Eloquent schemas differ. For Laravel, consider using Eloquent factories or migrations to recreate the tables.
Does this bundle support Laravel’s authentication system (e.g., Auth::attempt) out of the box?
No, it uses Symfony’s security component. You’d need to create a custom facade or middleware to bridge Symfony’s authentication logic (e.g., firewalls, encoders) with Laravel’s `Auth` facade. This requires rewriting or extending the bundle’s security configuration.
Can I use the bundle’s JSON API in Laravel without frontend templates?
Yes, the bundle’s API is designed for JSON interactions, so you can consume it via Laravel’s HTTP client (e.g., `Http::post()`) or API routes. This avoids template conflicts entirely and is the recommended approach for decoupled architectures.
What’s the best way to handle Twig templates in Laravel if I need them?
You have three options: 1) Embed Twig in Laravel using the `twig/laravel` bridge (adds complexity), 2) manually convert Twig templates to Blade (time-consuming), or 3) use the bundle’s API for frontend interactions and build custom Blade views. Option 3 is simplest for Laravel projects.
How does social login (HWIOAuth) work in Laravel with this bundle?
HWIOAuthBundle is Symfony-specific, so you’d need to integrate it via Laravel Socialite or rewrite the OAuth logic. Laravel Socialite supports most providers (Google, Facebook, etc.), but custom providers in HWIOAuth may require additional work. Test thoroughly for token handling and user data mapping.
Is this bundle GDPR-compliant for Laravel projects?
Yes, the bundle includes GDPR features like data export, consent management, and archiving. However, ensure your Laravel app’s storage (e.g., database, emails) also complies with GDPR. The bundle’s email archiving via `c975LEmailBundle` can help, but verify its compatibility with Laravel’s mail drivers.
What Laravel alternatives exist for user management with GDPR support?
For Laravel, consider: `spatie/laravel-permission` (roles/permissions), `laravel-breeze` (auth scaffolding), or `laravel-impersonate` (admin user switching). For GDPR, add packages like `spatie/laravel-activitylog` for audit trails or build custom consent workflows with Eloquent events.
How do I handle multiple user types (e.g., admin, business) in Laravel with this bundle?
The bundle supports multiple user entities (e.g., `LightUser`, `BusinessUser`), but you’d need to map them to Laravel’s Eloquent models. Use traits or inheritance in Eloquent to extend base functionality. For admin-specific logic, leverage Laravel’s middleware or policy classes.
What are the risks of using an unmaintained Symfony bundle in a Laravel project?
The bundle has no active maintenance (0 dependents, low stars), so expect potential compatibility issues with newer Symfony/Laravel versions. Plan for forks, custom patches, or a migration to a Laravel-native solution if critical bugs arise. Test thoroughly in staging before production.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
bugban/symfony
beyonder-capi/workflow-extensions-bundle
beyonder-capi/job-queue-bundle
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin