https://github.com/damienharper/userbundle
Simple yet convenient bundle which lets you easily add features like user authentication, password resetting, user account locking, user account expiration to your application.
https://github.com/damienharper/userbundle
authentication doctrine symfony symfony-bundle symfony-flex symfony3 symfony4 user-bundle
Last synced: 12 months ago
JSON representation
Simple yet convenient bundle which lets you easily add features like user authentication, password resetting, user account locking, user account expiration to your application.
- Host: GitHub
- URL: https://github.com/damienharper/userbundle
- Owner: DamienHarper
- License: mit
- Created: 2018-09-18T12:33:54.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-03-08T22:21:34.000Z (about 5 years ago)
- Last Synced: 2025-03-24T16:45:07.478Z (about 1 year ago)
- Topics: authentication, doctrine, symfony, symfony-bundle, symfony-flex, symfony3, symfony4, user-bundle
- Language: PHP
- Homepage:
- Size: 44.9 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# UserBundle
[](https://packagist.org/packages/damienharper/user-bundle)
[](https://packagist.org/packages/damienharper/user-bundle)
[](https://packagist.org/packages/damienharper/user-bundle)
[](https://packagist.org/packages/damienharper/user-bundle)
[](https://packagist.org/packages/damienharper/user-bundle)
[](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
============
Applications that use Symfony Flex
----------------------------------
Open a command console, enter your project directory and execute:
```console
$ composer require damienharper/user-bundle
```
Applications that don't use Symfony Flex
----------------------------------------
### 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:
```console
$ 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
Then, enable the bundle by adding it to the list of registered bundles
in the `app/AppKernel.php` file of your project:
```php
id;
}
public function setFullName(string $fullName): void
{
$this->fullName = $fullName;
}
public function getFullName(): ?string
{
return $this->fullName;
}
}
```
License
=======
UserBundle is free to use and is licensed under the [MIT license](http://www.opensource.org/licenses/mit-license.php)