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

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 email
  • 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
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
  • minor #1831 Removed index dropDups (peshi)
    By stof, 22 days ago
  • minor #1828 Fix deprecated SecurityContext usage on loginManager (Soullivaneuh)
    By stof, 23 days ago
  • Removed index dropDups
    By peshi, 23 days ago
  • bug #1809 ODM column > fieldName (peshi)
    By stof, 23 days ago
  • minor #1824 Travis improve (Soullivaneuh)
    By stof, 23 days ago
  • minor #1829 Update event subscriber to not use deprecated methods (xelaris)
    By stof, 23 days ago
  • Update event subscriber to not use deprecated methods
    By xelaris, 23 days ago
  • Travis improve
    By Soullivaneuh, 27 days ago
  • Fix deprecated SecurityContext usage on loginManager
    By Soullivaneuh, 27 days ago
  • minor #1823 Fix deprecated routing configuration (Soullivaneuh)
    By stof, 27 days ago
  • minor #1818 Update SecurityController to not use deprecated classes (xelaris)
    By stof, 27 days ago
  • Update SecurityController to not use deprecated classes
    By xelaris, 27 days ago
  • Fix deprecated routing configuration
    By Soullivaneuh, 27 days ago
  • bug #1766 Avoid Starting Sessions for Anonymous Users. (aitboudad)
    By stof, 28 days ago
  • Merge pull request #1826 from Soullivaneuh/patch-1
    By stof, 28 days ago
  • minor #1821 Add configureOptions method to form types for SF 2.7 (xelaris)
    By stof, 28 days ago
  • Change CSRF provider configuration on doc
    By Soullivaneuh, 28 days ago
  • Add configureOptions method to form types for SF 2.7
    By xelaris, 1 month ago
  • Group.mongodb.xml moved options.
    By peshi, 1 month ago
  • ODM column > fieldName
    By peshi, 1 month ago
  • minor #1805 fix exception message for unavailable model manager name (craue)
    By stof, 1 month ago
  • fixed exception message for unavailable model manager name
    By craue, 1 month ago
  • minor #1786 Fix a typo in the doc (algisimu)
    By stof, 1 month ago
  • bug #1765 use setFactory service definition method for symfony >= 2.6 (when possible) (adam187)
    By stof, 1 month ago
  • use setFactory service definition method for symfony >= 2.6 (when possible)
    By stof, 1 month ago
  • bug #1802 Fix to Problem with auto mapping and doctrine/orm >= 2.5 #1790 (nmalo)
    By stof, 1 month ago
  • Fix to Problem with auto mapping and doctrine/orm >= 2.5 #1790
    By stof, 1 month ago
  • minor #1772 travis: PHP 7.0 nightly added (TomasVotruba)
    By stof, 1 month ago
  • Merge pull request #1792 from aderuwe/typo-fix
    By stof, 1 month ago
  • Fix typo
    By aderuwe, 1 month ago