PHPackages                             kematjaya/user-bundle - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. kematjaya/user-bundle

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

kematjaya/user-bundle
=====================

4.4.2(3y ago)32.4k1proprietaryPHP

Since Jul 17Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/kematjaya0/user-bundle)[ Packagist](https://packagist.org/packages/kematjaya/user-bundle)[ RSS](/packages/kematjaya-user-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (18)Versions (70)Used By (1)

user-bundle for symfony &gt; 5.2 (for symfony under 5.2 use 2 version)
======================================================================

[](#user-bundle-for-symfony--52-for-symfony-under-52-use-2-version)

1. Install ```
    composer require kematjaya/user-bundle

    ```
2. Enable Bundle add to config/bundles.php ```
    Kematjaya\User\KmjUserBundle::class => ['all' => true]

    ```
3. create file config/packages/kmj\_user.yml ```
    user:
         route:
             login: kmj_user_login
             login_success:
                 ## ----- default redirect page ----
                 default: dashboard_index
                 ## ----- if multiple redirect ----
                 roles:
                     - { role: ROLE_USER, path: homepage }
                     - { role: ROLE_SUPER_USER, path: backend_dashboard }

    ```
4. update config/packages/security.yml ```
    security:
         role_hierarchy:
             # kmj_user default rule is (ROLE_SUPER_USER, ROLE_ADMINISTRATOR, ROLE_USER)
             ROLE_ADMINISTRATOR: ROLE_USER
             ROLE_SUPER_USER: ROLE_ADMINISTRATOR
         password_hashers:
             Kematjaya\UserBundle\Entity\KmjUser: auto
         enable_authenticator_manager: true
         providers:
             app_user_provider:
                 entity:
                     class: Kematjaya\UserBundle\Entity\KmjUser
                     property: username
         firewalls:
             main:
                 logout:
                     path: kmj_user_logout
                 custom_authenticators:
                     - Kematjaya\UserBundle\Security\FormLoginAuthenticator

    ```
5. import route, update file config/routes/annotations.yaml ```
    kmj_user:
     resource: '@UserBundle/Resources/config/routing/all.xml'

    ```
6. create entity ```
    // src/Entity/MyUser.php
    ..
    use Kematjaya\UserBundle\Entity\DefaultUser;
    ...

    class MyUser extends DefaultUser
    {
         /**
         * @ORM\Column(type="string", length=255, nullable=true)
         */
         private $email;

         public function getEmail(): ?string
         {
             return $this->email;
         }

         public function setEmail(?string $email): self
         {
             $this->email = $email;

             return $this;
         }
    }

    ```
7. update schema: ```
    php bin/console doctrine:schema:update --force

    ```
8. for insert demo user, then run on command : ```
    php bin/console doctrine:fixtures:load

    ```

    then, use root and admin for login and password: admin123
9. other route : ```
    {{ path('kmj_user_user') }}
    {{ path('kmj_user_profile') }} // for profile user
    {{ path('kmj_user_change_password') }} // for open change password form
    {{ path('kmj_user_logout') }} // for logout

    ```

10, password form theme: `twig: form_themes: ## .... for bootstrap 3 - '@User/form/bootstrap_3_password.html.twig' ## .... for bootstrap 4 - '@User/form/bootstrap_4_password.html.twig'`

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance52

Moderate activity, may be stable

Popularity22

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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 ~29 days

Recently: every ~301 days

Total

69

Last Release

133d ago

Major Versions

1.3 → 2.02020-11-21

2.3.4 → 3.02021-04-14

3.1.3 → 4.02021-06-07

2.3.7 → 4.2.32021-10-07

4.4.2 → 7.0-BETA2026-01-06

### Community

Maintainers

![](https://www.gravatar.com/avatar/f2cf191329e1adc930a168a7d3baeda8517b7982184820692163a5baa72e3965?d=identicon)[kematjaya0](/maintainers/kematjaya0)

---

Top Contributors

[![kematjaya0](https://avatars.githubusercontent.com/u/36223951?v=4)](https://github.com/kematjaya0 "kematjaya0 (76 commits)")

---

Tags

login-systemmanagemen-usersymfonysymfony-bundlesymfony4symfony5user-bundle

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kematjaya-user-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/kematjaya-user-bundle/health.svg)](https://phpackages.com/packages/kematjaya-user-bundle)
```

###  Alternatives

[sylius/sylius

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

8.4k5.6M651](/packages/sylius-sylius)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k16.7M310](/packages/easycorp-easyadmin-bundle)[sulu/sulu

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

1.3k1.3M152](/packages/sulu-sulu)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)

PHPackages © 2026

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