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

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

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.2.0 (for Symfony 2.0.x)

Installation

All the installation instructions are located in 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_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
  • Merge pull request #1126 from danieljames/patch-1
    By stof, 4 days ago
  • Merge pull request #1128 from yosmanyga/patch-2
    By stof, 6 days ago
  • Merge pull request #1128 from yosmanyga/patch-2
    By stof, 6 days ago
  • Merge pull request #1128 from yosmanyga/patch-2
    By stof, 6 days ago
  • Merge pull request #1128 from yosmanyga/patch-2
    By stof, 6 days ago
  • Merge pull request #1128 from yosmanyga/patch-2
    By stof, 6 days ago
  • Merge pull request #1128 from yosmanyga/patch-2
    By stof, 6 days ago
  • Merge pull request #1128 from yosmanyga/patch-2
    By stof, 6 days ago
  • Merge pull request #1128 from yosmanyga/patch-2
    By stof, 6 days ago
  • Merge pull request #1128 from yosmanyga/patch-2
    By stof, 6 days ago
  • Merge pull request #1128 from yosmanyga/patch-2
    By stof, 6 days ago
  • Merge pull request #1128 from yosmanyga/patch-2
    By stof, 6 days ago
  • Merge pull request #1128 from yosmanyga/patch-2
    By stof, 6 days ago
  • Merge pull request #1128 from yosmanyga/patch-2
    By stof, 6 days ago
  • Merge pull request #1128 from yosmanyga/patch-2
    By stof, 6 days ago
  • Merge pull request #1128 from yosmanyga/patch-2
    By stof, 6 days ago
  • Merge pull request #1128 from yosmanyga/patch-2
    By stof, 6 days ago
  • Merge pull request #1128 from yosmanyga/patch-2
    By stof, 6 days ago
  • Merge pull request #1128 from yosmanyga/patch-2
    By stof, 6 days ago
  • Merge pull request #1128 from yosmanyga/patch-2
    By stof, 6 days ago
  • Remove unused class
    By yosmanyga, 6 days ago
  • Fix namespace for UserProviderInterface in the documentation.
    By , 7 days ago
  • Merge pull request #953 from jmclean/patch-1
    By stof, 12 days ago
  • Merge pull request #1103 from kbond/patch-1
    By stof, 12 days ago
  • Updated the constraints to allow Symfony 2.3
    By stof, 18 days ago
  • Used 2.1 syntax
    By kbond, 21 days ago
  • Enforce POST for /login_check
    By kbond, 22 days ago
  • Merge pull request #1099 from bartrail/master
    By stof, 24 days ago
  • added "Annotations" namespace for mongodb
    By bartrail, 26 days ago
  • Merge pull request #1089 from ClementGautier/patch-1
    By stof, 1 month ago