PHPackages                             damienharper/user-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. damienharper/user-bundle

ActiveSymfony-bundle[Database &amp; ORM](/categories/database)

damienharper/user-bundle
========================

User Bundle

1.4.3(5y ago)510.2k↓66.7%1[1 issues](https://github.com/DamienHarper/UserBundle/issues)MITPHPPHP ^7.3

Since Sep 24Pushed 5y ago1 watchersCompare

[ Source](https://github.com/DamienHarper/UserBundle)[ Packagist](https://packagist.org/packages/damienharper/user-bundle)[ RSS](/packages/damienharper-user-bundle/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (8)Dependencies (13)Versions (17)Used By (0)

UserBundle
==========

[](#userbundle)

[![Latest Stable Version](https://camo.githubusercontent.com/c6028961ba94d0c26ca52e305ca0bb6e475cda58a7baecf12f6a3976c60f6f21/68747470733a2f2f706f7365722e707567782e6f72672f64616d69656e6861727065722f757365722d62756e646c652f762f737461626c65)](https://packagist.org/packages/damienharper/user-bundle)[![Latest Unstable Version](https://camo.githubusercontent.com/f3ba68e98e55be7b3d46f207363fca74bfcf20ff1f1f7af0ffcdf6e1dd4f1cca/68747470733a2f2f706f7365722e707567782e6f72672f64616d69656e6861727065722f757365722d62756e646c652f762f756e737461626c65)](https://packagist.org/packages/damienharper/user-bundle)[![Total Downloads](https://camo.githubusercontent.com/978d53c22892e83e3ce2a1568226fbc1bcb9bb7f14f6dbaf3cc0ce2f703e25d8/68747470733a2f2f706f7365722e707567782e6f72672f64616d69656e6861727065722f757365722d62756e646c652f646f776e6c6f616473)](https://packagist.org/packages/damienharper/user-bundle)[![License](https://camo.githubusercontent.com/8ae90170917077f098f55b31495cfdc71ff1f3c9842deb1bfaed8f0f661921c4/68747470733a2f2f706f7365722e707567782e6f72672f64616d69656e6861727065722f757365722d62756e646c652f6c6963656e7365)](https://packagist.org/packages/damienharper/user-bundle)[![Monthly Downloads](https://camo.githubusercontent.com/9e3ff4560a3f4fffd78631fed2f86484157782b9588580fff301c97097d875c6/68747470733a2f2f706f7365722e707567782e6f72672f64616d69656e6861727065722f757365722d62756e646c652f642f6d6f6e74686c79)](https://packagist.org/packages/damienharper/user-bundle)[![Daily Downloads](https://camo.githubusercontent.com/144505ffdc883cbe40bf8d5c8cf68e2bfdc01f2a5991c758bdcaaf0636f40b77/68747470733a2f2f706f7365722e707567782e6f72672f64616d69656e6861727065722f757365722d62756e646c652f642f6461696c79)](https://packagist.org/packages/damienharper/user-bundle)

This bundle, simple yet convenient, lets you easily add to your application features such as:

- user authentication
- password resetting
- user account locking
- user account expiration
- force a user to reset his password at first connection

**Notes**:

- this bundle assumes you're using Doctrine to persist and retrieve your users. It provides a Doctrine UserProvider.
- if you need two factor authentication (2FA), this bundle plays nicely with [TwoFactorBundle](https://github.com/scheb/two-factor-bundle)
- this bundle is inspired by [FOSUserBundle](https://github.com/FriendsOfSymfony/FOSUserBundle.git)

Installation
============

[](#installation)

Applications that use Symfony Flex
----------------------------------

[](#applications-that-use-symfony-flex)

Open a command console, enter your project directory and execute:

```
$ composer require damienharper/user-bundle
```

Applications that don't use Symfony Flex
----------------------------------------

[](#applications-that-dont-use-symfony-flex)

### Step 1: Download the Bundle

[](#step-1-download-the-bundle)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
$ composer require damienharper/user-bundle
```

This command requires you to have Composer installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

### Step 2: Enable the Bundle

[](#step-2-enable-the-bundle)

Then, enable the bundle by adding it to the list of registered bundles in the `app/AppKernel.php` file of your project:

```
