Download the PHP package knplabs/rad-user without Composer
On this page you can find all versions of the php package knplabs/rad-user. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download knplabs/rad-user
More information about knplabs/rad-user
Files in knplabs/rad-user
Package rad-user
Short Description Simply handle password encryption and salt generation
License MIT
Informations about the package rad-user
DEPRECATED
Unfortunately we decided to not maintain this project anymore (see why). If you want to mark another package as a replacement for this one please send an email to [email protected].
Rapid Application Development : User
A Symfony bundle to simply handle password encryption and salt generation
Official maintainers:
Installation
Usages
I want to auto-generate my user salt
The salt feature is deprecated since PHP 5.5 and BCrypt usage. Please upgrade your version of PHP and use BCrypt.
Your User model should implement the Knp\Rad\User\HasSalt
interface.
Now, before your user is inserted into your database, the salt will be auto-generated.
I want to auto-generate my user password
Your User model should implement the Knp\Rad\User\HasInitialPassword
interface.
Now, before your user is inserted or updated into your database, then the plain password will be automaticly generated.
I want to auto-encode my user password
Your User model should implement the Knp\Rad\User\HasPassword
interface.
Now, before your user is inserted or updated into your database, if you have set the attribute 'plainPassword', then the password will be automaticly generated.
WARNING
The Knp\Rad\User\HasPassword\HasPassword
trait use the Knp\Rad\User\HasInitialPassword\HasInitialPassword
trait. So don't use both into the same class or you will have a method conflict.
Some tips
Using with MongoDB or CouchDB Object Document Mapper
The knp/rad-user library is also compatible with MongoDB and CouchDB
All versions of rad-user with dependencies
doctrine/common Version ~2.4
symfony/config Version ~3.0 | ~4.0
symfony/dependency-injection Version ~3.0 | ~4.0
symfony/http-kernel Version ~3.0 | ~4.0
symfony/security-core Version ~3.0 | ~4.0