Developed with love by KnpLabs Hire us for your project!
2229

FOSUserBundle

by FriendsOfSymfony

Provides user management for your Symfony2 Project. Compatible with Doctrine ORM & ODM, and Propel.

FOSUserBundle

The FOSUserBundle adds support for a database-backed user system in Symfony2.
It provides a flexible framework for user management that aims to handle
common tasks such as user registration and password retrieval.

Features include:

  • Users can be stored via Doctrine ORM, MongoDB/CouchDB ODM or Propel
  • Registration support, with an optional confirmation per mail
  • Password reset support
  • Unit tested

Note: This bundle does not provide an authentication system but can
provide the user provider for the core SecurityBundle.

Caution: This bundle is developed in sync with symfony's repository.
For Symfony 2.0.x, you need to use the 1.2.0 release of the bundle (or lower)

Build Status Total Downloads Latest Stable Version

Documentation

The bulk of the documentation is stored in the Resources/doc/index.md
file in this bundle:

Read the Documentation for master

Read the Documentation for 1.3.x

Read the Documentation for 1.2.0 (for Symfony 2.0.x)

Installation

All the installation instructions are located in the documentation.

License

This bundle is under the MIT license. See the complete license in the bundle:

Resources/meta/LICENSE

About

UserBundle is a knplabs initiative.
See also the list of contributors.

Reporting an issue or a feature request

Issues and feature requests are tracked in the Github issue tracker.

When reporting a bug, it may be a good idea to reproduce it in a basic project
built using the Symfony Standard Edition
to allow developers of the bundle to reproduce the issue by simply cloning it
and following some steps.

Copyright (c) 2010-2011 FriendsOfSymfony

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
fos_user:
db_driver: ~ # Required
user_class: ~ # Required
firewall_name: ~ # Required
model_manager_name: ~
use_listener: true
use_flash_notifications: true
use_username_form_type: true
from_email:
address: webmaster@example.com
sender_name: webmaster
profile:
form:
type: fos_user_profile
name: fos_user_profile_form
validation_groups:

# Defaults:
- Profile
- Default
change_password:
form:
type: fos_user_change_password
name: fos_user_change_password_form
validation_groups:

# Defaults:
- ChangePassword
- Default
registration:
confirmation:
enabled: false
template: FOSUserBundle:Registration:email.txt.twig
from_email:
address: ~ # Required
sender_name: ~ # Required
form:
type: fos_user_registration
name: fos_user_registration_form
validation_groups:

# Defaults:
- Registration
- Default
resetting:
token_ttl: 86400
email:
template: FOSUserBundle:Resetting:email.txt.twig
from_email:
address: ~ # Required
sender_name: ~ # Required
form:
type: fos_user_resetting
name: fos_user_resetting_form
validation_groups:

# Defaults:
- ResetPassword
- Default
service:
mailer: fos_user.mailer.default
email_canonicalizer: fos_user.util.canonicalizer.default
token_generator: fos_user.util.token_generator.default
username_canonicalizer: fos_user.util.canonicalizer.default
user_manager: fos_user.user_manager.default
template:
engine: twig
group:
group_class: ~ # Required
group_manager: fos_user.group_manager.default
form:
type: fos_user_group
name: fos_user_group_form
validation_groups:

# Defaults:
- Registration
- Default
  • Removed the old unique validator parameters.
    By Aitboudad, 3 months ago
  • Merge pull request #1377 from aitboudad/patch-1
    By stof, 3 months ago
  • Merge pull request #1369 from 0biwan/patch-1
    By stof, 4 months ago
  • Fixed duplicated open tag and message
    By , 4 months ago
  • Merge pull request #1356 from nunojsferreira/patch-3
    By stof, 4 months ago
  • Fixed indentation problem
    By nunojsferreira, 4 months ago
  • Merge pull request #1355 from nunojsferreira/patch-2
    By stof, 4 months ago
  • Merge pull request #1356 from nunojsferreira/patch-3
    By stof, 4 months ago
  • Merge pull request #1356 from nunojsferreira/patch-3
    By stof, 4 months ago
  • Merge pull request #1356 from nunojsferreira/patch-3
    By stof, 4 months ago
  • Merge pull request #1356 from nunojsferreira/patch-3
    By stof, 4 months ago
  • Merge pull request #1356 from nunojsferreira/patch-3
    By stof, 4 months ago
  • Merge pull request #1356 from nunojsferreira/patch-3
    By stof, 4 months ago
  • Merge pull request #1356 from nunojsferreira/patch-3
    By stof, 4 months ago
  • Merge pull request #1356 from nunojsferreira/patch-3
    By stof, 4 months ago
  • Merge pull request #1356 from nunojsferreira/patch-3
    By stof, 4 months ago
  • Merge pull request #1356 from nunojsferreira/patch-3
    By stof, 4 months ago
  • Merge pull request #1356 from nunojsferreira/patch-3
    By stof, 4 months ago
  • Merge pull request #1356 from nunojsferreira/patch-3
    By stof, 4 months ago
  • Merge pull request #1356 from nunojsferreira/patch-3
    By stof, 4 months ago
  • Merge pull request #1356 from nunojsferreira/patch-3
    By stof, 4 months ago
  • Merge pull request #1356 from nunojsferreira/patch-3
    By stof, 4 months ago
  • Merge pull request #1356 from nunojsferreira/patch-3
    By stof, 4 months ago
  • Merge pull request #1356 from nunojsferreira/patch-3
    By stof, 4 months ago
  • Merge pull request #1356 from nunojsferreira/patch-3
    By stof, 4 months ago
  • Merge pull request #1356 from nunojsferreira/patch-3
    By stof, 4 months ago
  • Merge pull request #1356 from nunojsferreira/patch-3
    By stof, 4 months ago
  • Merge pull request #1356 from nunojsferreira/patch-3
    By stof, 4 months ago
  • Merge pull request #1356 from nunojsferreira/patch-3
    By stof, 4 months ago
  • Merge pull request #1356 from nunojsferreira/patch-3
    By stof, 4 months ago