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

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
  • Merge pull request #1432 from Szymciosek/patch-2
    By merk, 15 days ago
  • Merge pull request #1433 from Szymciosek/patch-3
    By merk, 15 days ago
  • Merge pull request #1532 from Nyholm/patch-1
    By stof, 15 days ago
  • Added HHVM to travis.yml
    By Nyholm, 15 days ago
  • Merge branch '1.3.x'
    By stof, 16 days ago
  • minor #1531 Updated croatian translations (peric)
    By stof, 16 days ago
  • Updated croatian translations
    By stof, 16 days ago
  • Merge pull request #1482 from mdurys/master
    By merk, 16 days ago
  • Merge pull request #1493 from ZiedJlassi/patch-2
    By merk, 16 days ago
  • Merge pull request #1518 from ysramirez/patch-1
    By merk, 16 days ago
  • Merge pull request #1525 from ousmaneNdiaye/FixErrorDoc
    By stof, 20 days ago
  • Fixed error : AcmeUserBundle should be compatible with FOS\UserBundle...
    By ousmaneNdiaye, 20 days ago
  • Update FOSUserBundle.en.yml
    By ysramirez, 24 days ago
  • Merge branch '1.3.x'
    By stof, 1 month ago
  • Updated the changelog for 1.3.4
    By stof, 1 month ago
  • Merge pull request #1506 from cfv1000/patch-1
    By stof, 1 month ago
  • Update FOSUserBundle.ro.yml
    By stof, 1 month ago
  • Merge pull request #1505 from kbond/validation-symfony-2.5
    By stof, 1 month ago
  • Update ValidationPass to work with Symfony 2.5+
    By kbond, 1 month ago
  • Merge pull request #1502 from vlad88sv/master
    By stof, 1 month ago
  • Update index.md
    By , 1 month ago
  • Suggestion on the bundle install step 1
    By vlad88sv, 1 month ago
  • adding missing translation for security login
    By , 2 months ago
  • Merge pull request #1491 from aitboudad/patch-2
    By stof, 2 months ago
  • [SecurityContext] Use SecurityContextInterface.
    By Aitboudad, 2 months ago
  • Merge pull request #1486 from yosmanyga/patch-1
    By stof, 2 months ago
  • Fixed minor typo
    By yosmanyga, 2 months ago
  • Translated "User account is locked." error message
    By , 2 months ago
  • Merge pull request #1470 from miukoba/master
    By stof, 3 months ago
  • Added Japanese translation for password.mismatch
    By , 3 months ago