Download the PHP package appaydin/pd-user without Composer
On this page you can find all versions of the php package appaydin/pd-user. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download appaydin/pd-user
More information about appaydin/pd-user
Files in appaydin/pd-user
Package pd-user
Short Description Symfony Simple User Bundle
License MIT
Homepage https://github.com/appaydin/pd-user
Informations about the package pd-user
pdUser Bundle
Simple user management system for Symfony 5+.
Installation
Step 1: Download the Bundle
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
Step 2: Enable the Bundle
With Symfony 5, the package will be activated automatically. But if something goes wrong, you can install it manually.
Then, enable the bundle by adding it to the list of registered bundles
in the config/bundles.php
file of your project:
Step 3: Create User, Group, Class
A) Create User Class
Create the User class for your application. This class can look and act however you want: add any properties or methods you find useful. This is your User class.
B) Create Group Class
Create the Group class for your application. This class creates user groups.
Step 4: Settings Bundle
Create a "user.yaml" file for the settings.
- __user_class:__ Define 'User' class address
- __group_class:__ Define 'Group' class address
- __default_group:__ New members will join group id
- __login_redirect:__ The router name to which logged-in users will be directed.
- __email_confirmation:__ Enables email verification for register.
- __welcome_email:__ Welcome new members welcome message.
- __user_registration:__ Enable/Disable user registration.
- __template_path:__ Directory for Twig templates. Changes can be made by copying the source directory.
- resetting_request_time: Enter the retry time in seconds for password renewal.
- mail_sender_address: Mail sender address
- mail_sender_name: Mail sender name
- __active_language:__ List of Active Language
- __register_type:__ Register Form Type
- __resetting_type:__ Resetting Form Type
Events
UserEvent::REGISTER_BEFORE => It is launched before the registration form.
UserEvent::REGISTER => When the recording is complete, it is launched.
UserEvent::REGISTER_CONFIRM => E-mail is launched when registration is confirmed.
UserEvent::RESETTING => The password is launched when the reset mail is sent.
UserEvent::RESETTING_COMPLETE => It is launched when the password is changed.
Step 5: Configure Your Application's Security.yml
Below is a minimal example of the configuration necessary to use the pdUser in your application:
Step 6: Import pdUser Routing
Now that you have activated and configured the bundle, all that is left to do is import the pdUser routing files.
By importing the routing files you will have ready made pages for things such as logging in, register, password resetting.
Step 6: Update Your Database Schema
All steps are completed. You can now update the database schema.
All versions of pd-user with dependencies
twig/twig Version *
symfony/mailer Version *
symfony/event-dispatcher Version *