PHPackages                             tuxxydos/knplabs-rad-user - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. tuxxydos/knplabs-rad-user

ActiveLibrary[Security](/categories/security)

tuxxydos/knplabs-rad-user
=========================

Simply handle password encryption and salt generation

v4.2(7y ago)0306MITPHPPHP ~7.0

Since Dec 19Pushed 4y agoCompare

[ Source](https://github.com/TuxxyDOS/rad-user)[ Packagist](https://packagist.org/packages/tuxxydos/knplabs-rad-user)[ RSS](/packages/tuxxydos-knplabs-rad-user/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (8)Versions (13)Used By (0)

Fork to keep using a specific feature in Symfony 5.x

Rapid Application Development : User
====================================

[](#rapid-application-development--user)

A **Symfony bundle** to simply handle password encryption by [@KnpLabs](https://github.com/KnpLabs)

Installation
============

[](#installation)

```
composer require tuxxydos/knplabs-rad-user
```

```
class AppKernel
{
    function registerBundles()
    {
        $bundles = array(
            //...
            new Knp\Rad\User\Bundle\UserBundle(),
            //...
        );

        //...

        return $bundles;
    }
}
```

Usages
======

[](#usages)

I want to auto-generate my user password
----------------------------------------

[](#i-want-to-auto-generate-my-user-password)

Your User model should implement the `Knp\Rad\User\HasInitialPassword` interface.

```
namespace App\Entity;

use Doctrine\ORM\Mapping as ORM;
use Knp\Rad\User\HasInitialPassword;

/**
 * @ORM\Entity
 */
class User implements HasInitialPassword
{
    use HasInitialPassword\HasInitialPassword; // You can also use this trait

    /**
     * @ORM\Id
     * @ORM\GeneratedValue
     * @ORM\Column(type="integer")
     */
    private $id;

    /**
     * @ORM\Column
     */
    private $password;
}
```

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
--------------------------------------

[](#i-want-to-auto-encode-my-user-password)

Your User model should implement the `Knp\Rad\User\HasPassword` interface.

```
namespace App\Entity;

use Doctrine\ORM\Mapping as ORM;
use Knp\Rad\User\HasPassword;

/**
 * @ORM\Entity
 */
class User implements HasPassword
{
    use HasPassword\HasPassword; // You can also use this trait

    /**
     * @ORM\Id
     * @ORM\GeneratedValue
     * @ORM\Column(type="integer")
     */
    private $id;

    /**
     * @ORM\Column
     */
    private $password;
}
```

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
=======

[](#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.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~254 days

Recently: every ~299 days

Total

11

Last Release

1617d ago

Major Versions

v1.1.0 → v2.0.02016-03-04

v2.1.0 → v3.0.02017-09-21

v3.1.0 → v4.22018-08-28

v3.1.1 → 4.12021-12-07

PHP version history (3 changes)v1.0.0PHP &gt;=5.4

v3.0.0PHP ~7.0

4.1PHP ~7.0 | ~8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/6e5a927b3a4657696b7fa6656a16a7abc1d5fb246c97d06e474b0f9de088e522?d=identicon)[TuxxyDOS](/maintainers/TuxxyDOS)

---

Top Contributors

[![PedroTroller](https://avatars.githubusercontent.com/u/1766827?v=4)](https://github.com/PedroTroller "PedroTroller (14 commits)")[![jeremyb](https://avatars.githubusercontent.com/u/134588?v=4)](https://github.com/jeremyb "jeremyb (9 commits)")[![Djeg](https://avatars.githubusercontent.com/u/1638230?v=4)](https://github.com/Djeg "Djeg (6 commits)")[![polc](https://avatars.githubusercontent.com/u/3513348?v=4)](https://github.com/polc "polc (3 commits)")[![stephanedelprat](https://avatars.githubusercontent.com/u/152964289?v=4)](https://github.com/stephanedelprat "stephanedelprat (1 commits)")

### Embed Badge

![Health badge](/badges/tuxxydos-knplabs-rad-user/health.svg)

```
[![Health](https://phpackages.com/badges/tuxxydos-knplabs-rad-user/health.svg)](https://phpackages.com/packages/tuxxydos-knplabs-rad-user)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[symfony/security-bundle

Provides a tight integration of the Security component into the Symfony full-stack framework

2.5k172.9M1.8k](/packages/symfony-security-bundle)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[sonata-project/entity-audit-bundle

Audit for Doctrine Entities

644989.8k1](/packages/sonata-project-entity-audit-bundle)[shopware/storefront

Storefront for Shopware

684.2M148](/packages/shopware-storefront)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
