NOTE: I now recommend to not use FOSUserBundle. Instead, use MakerBundle: it has commands to generate a User class, login form, registration form and more.
Ready to master Symfony's most popular bundle! FOSUserBundle can be a great way to get your application up and running quickly, giving you a User entity, registration pages, reset password and more. But to make it really shine, you need to integrate it into your layout, customize its text, tweak its forms and hook into its actions!
In this tutorial, you'll learn how to:
- Install & setup FOSUserBundle
- Understanding and configuring security
- Using your own base layout
- Overriding templates
- Customizing and extending the forms
- Removing the username field entirely
- Updating any text via translations
- Creating an event subscriber to do things before/after registration (or anything else)
- Using Guard Authentication with FOSUSerBundle
Let's rock!