Download the PHP package chaplean/user-bundle without Composer
On this page you can find all versions of the php package chaplean/user-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download chaplean/user-bundle
More information about chaplean/user-bundle
Files in chaplean/user-bundle
Package user-bundle
Short Description Creates a user account and log in (from FOSUserBundle)
License MIT
Informations about the package user-bundle
Getting Started With Chaplean User Bundle
Prerequisites
This version of the bundle requires Symfony 3.4+.
Installation
1. Composer
2. AppKernel.php
Add
NOTE: After SecurityBundle
3. Define User entity
Create a User class with doctrine information.
4. Minimal Configuration
Define namespace your user entity in app/config/config.yml
:
Import default config in app/config/config.yml
:
Define a route name for index path
In app/config/config.yml
:
Custom templating email:
In app/config/config.yml
5. Configure security
In app/config/security.yml
:
If you want you can also overide the defaults :
6. Import routing.yml
You should then create a Controller action for your login page. Make this controller inherit LoginController to get the checkAction and logoutAction actions. Finally in your routing create a route for these.
In your controller:
In app/config/routing.yml
:
Validator
MinimalPasswordRequirements
Chaplean\Bundle\UserBundle\Validator\Constraints\MinimalPasswordRequirements
has 2 options:
minLength
, default: 6atLeastOneSpecialCharacter
, default: true
Events
The UserBundle defines some events to allow you to hook in your own logic:
- ChapleanUserCreatedEvent : Dispatched after a user is created. Use getUser() to retreive the entity.
- ChapleanUserDeletedEvent : Dispatched before a user is deleted. Use getUser() to retreive the entity.
All versions of user-bundle with dependencies
chaplean/doctrine-extensions-bundle Version ^5.0
chaplean/form-handler-bundle Version ^4.0 || ^5.0
chaplean/mailer-bundle Version ^5.0
doctrine/doctrine-bundle Version ^1.6
doctrine/orm Version ^2.5
friendsofsymfony/rest-bundle Version ^2.1
friendsofsymfony/user-bundle Version ^2.0
sensio/distribution-bundle Version ^5.0
sensio/framework-extra-bundle Version ^3.0 || ^4.0 || ^5.0
symfony/framework-bundle Version ^3.0 || ^4.0
symfony/monolog-bundle Version ^3.0 || ^4.
symfony/security-bundle Version ^3.0 || ^4.0
symfony/templating Version ^3.0 || ^4.0
symfony/twig-bundle Version ^3.0 || ^4.0
symfony/validator Version ^3.0 || ^4.0
twig/extensions Version ^1.0