Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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: about 1 month 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.

Awesome Lists containing this project

README

        

# UserBundle

[![Latest Stable Version](https://poser.pugx.org/damienharper/user-bundle/v/stable)](https://packagist.org/packages/damienharper/user-bundle)
[![Latest Unstable Version](https://poser.pugx.org/damienharper/user-bundle/v/unstable)](https://packagist.org/packages/damienharper/user-bundle)
[![Total Downloads](https://poser.pugx.org/damienharper/user-bundle/downloads)](https://packagist.org/packages/damienharper/user-bundle)
[![License](https://poser.pugx.org/damienharper/user-bundle/license)](https://packagist.org/packages/damienharper/user-bundle)
[![Monthly Downloads](https://poser.pugx.org/damienharper/user-bundle/d/monthly)](https://packagist.org/packages/damienharper/user-bundle)
[![Daily Downloads](https://poser.pugx.org/damienharper/user-bundle/d/daily)](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)