An open API service indexing awesome lists of open source software.

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.

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.