https://github.com/schvoy/user-bundle
User bundle - This bundle provides a basic user entity and user repository.
https://github.com/schvoy/user-bundle
bundle doctrine php symfony symfony-bundle user-management
Last synced: 29 days ago
JSON representation
User bundle - This bundle provides a basic user entity and user repository.
- Host: GitHub
- URL: https://github.com/schvoy/user-bundle
- Owner: schvoy
- License: mit
- Created: 2020-07-19T21:05:22.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-11-12T23:02:51.000Z (5 months ago)
- Last Synced: 2026-01-11T14:35:19.077Z (3 months ago)
- Topics: bundle, doctrine, php, symfony, symfony-bundle, user-management
- Language: PHP
- Homepage:
- Size: 33.2 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# User bundle
This bundle provides a basic user entity and user repository,
that can be used immediately without too much effort, just a few small steps needed to use it.
However, these are extendable and you can add additional properties easily.
## Installation
```bash
composer require schvoy/user-bundle
```
## Usage
### Make your own `UserRepository`
```php
[...]
```
## Event subscriber
The `Schvoy\UserBundle\EventSubscriber\PasswordHashingDoctrineEventSubscriber` automatically hashes the plain password, during a new user entity creation or an update (if the password changed).
In some cases, you don't need this behavior, so you can disable it with the following code:
```php
PasswordHashingDoctrineEventSubscriber::setEnabled(false);
```
And after that you can re-enable it:
```php
PasswordHashingDoctrineEventSubscriber::setEnabled(true);
```
## Configuration reference
Extra configuration is not allowed yet for this bundle.