black/user
DDD/CQRS-oriented user management library by black/user, with a Symfony bundle for integration. Provides domain user model foundations and ORM configuration hooks to plug into your Symfony app. MIT licensed.
SensioFrameworkExtraBundle, Doctrine). Laravel’s ecosystem differs significantly, requiring abstraction layers (e.g., custom service providers, event dispatchers) to bridge gaps.db_driver: orm), which is compatible with Laravel via packages like doctrine/dbal or illuminate/database. However, Laravel’s Eloquent ORM may need wrapper classes to integrate seamlessly.UserProvider). Laravel’s auth system (e.g., Illuminate\Auth) would need custom adapters or middleware to map roles/permissions.UserCreatedEvent → Laravel’s events:dispatch).ParameterBag, HttpFoundation) may break Laravel compatibility without refactoring. Risk mitigated by:
UserRepositoryInterface) to abstract dependencies.Request → Illuminate\Http\Request).@stable tag suggests immature versioning. Risk:
1.2.3) to avoid breaking changes.Auth::attempt() or API token systems?User, Role) as Eloquent models via traits or inheritance.| Symfony Component | Laravel Equivalent | Integration Strategy |
|---|---|---|
UserProvider |
Illuminate\Contracts\Auth\User |
Implement retrieveById()/retrieveByCredentials() |
EventDispatcher |
Illuminate\Events\Dispatcher |
Bind Symfony events to Laravel listeners |
Doctrine ORM |
Eloquent | Use doctrine/dbal for raw SQL or wrap Eloquent in a repository |
ParameterBag |
Laravel Config/Env | Replace with config('black_user.*) |
User) with Eloquent.BlackUserServiceProvider) to:
UserProvider → Authenticatable).config.yml with Laravel’s config/black_user.php.Role entity).event:dispatch.doctrine/dbal for raw SQL if Eloquent’s query builder is insufficient.laravel-doctrine/orm).HttpFoundation with Illuminate\Http.symfony/polyfill-* for compatibility where needed (e.g., mbstring).User ↔ Eloquent model).UserRegisteredEvent triggers Laravel notifications).User entity, then commands).hasRole() middleware).replace to force Laravel-compatible versions.SensioFrameworkExtraBundle is unmaintained).doctrine/dbal instead of Eloquent").Log channel (e.g., [black_user]).alexandre@lablackroom.com) for guidance.Redis).migrations/ table.| Scenario | Impact | Mitigation Strategy |
|---|---|---|
| Package stops receiving updates | Technical debt accumulates | Fork the repo or switch to alternatives |
How can I help you explore Laravel packages today?