PHPackages                             foreverglory/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. foreverglory/user-bundle

ActiveSymfony-bundle[Authentication &amp; Authorization](/categories/authentication)

foreverglory/user-bundle
========================

Symfony UserBundle

024PHP

Since Jan 20Pushed 9y ago1 watchersCompare

[ Source](https://github.com/foreverglory/user-bundle)[ Packagist](https://packagist.org/packages/foreverglory/user-bundle)[ RSS](/packages/foreverglory-user-bundle/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

UserBundle
==========

[](#userbundle)

UserBundle 基于 friendsofsymfony/user-bundle 进行整合管理用户 重写用户登陆、注册、资料 用户、用户组管理

介绍
--

[](#介绍)

### Composer

[](#composer)

添加 `composer.json` 到你的项目依赖

```
{
    "foreverglory/user-bundle": "~0.1"
}
```

### Kernel

[](#kernel)

添加 `Kernel` 依赖，并启用 `Bundle`

```
//app/AppKernel.php
public function registerBundles()
{
    return array(
        // ...
        new FOS\UserBundle\FOSUserBundle(),
        new Knp\Bundle\PaginatorBundle\KnpPaginatorBundle(),
        new Glory\Bundle\UserBundle\GloryUserBundle(),
        // ...
    );
}
```

### Conﬁgure

[](#conﬁgure)

```
#app/conﬁg/conﬁg.yml
fos_user:
    db_driver: orm
    # 对应 security.firewalls 值
    firewall_name: main
    user_class: Glory\Bundle\UserBundle\Entity\User
    group:
        group_class: Glory\Bundle\UserBundle\Entity\Group
    # 更多配置，参考 `friendsofsymfony/user-bundle`
glory_user:
    # 未实现
```

```
#app/config/routing.yml
glory_user:
    resource: "@GloryUserBundle/Resources/config/routing.yml"
    prefix:   /
# 警告 不需要引用 `friendsofsymfony/user-bundle` 的路由配置
```

```
#app/config/security.yml
security:
    encoders:
        Glory\Bundle\UserBundle\Model\UserInterface: sha256
    providers:
        fos_user:
            id: fos_user.user_provider.username
    firewalls:
        # fos_user.firewall_name, hwi_oauth.firewall_name 对应值
        main:
            pattern:    /.*
            form_login:
                # 对应其中一个 security.providers
                provider: fos_user
                # 登录地址，不要修改
                login_path: glory_user_login
                # 登录验证
                check_path: glory_user_check
                #...more...
            remember_me:
                key: "%secret%"
                lifetime: 31536000
                path: /
                domain: ~
            logout:
                # 退出地址
                path: glory_user_logout
            anonymous:    true
```

### Code

[](#code)

extends Glory\\Bundle\\UserBundle\\Entity\\User

extends Glory\\Bundle\\UserBundle\\Entity\\Group

More
----

[](#more)

todo:

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

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

---

Top Contributors

[![foreverglory](https://avatars.githubusercontent.com/u/1069963?v=4)](https://github.com/foreverglory "foreverglory (128 commits)")

### Embed Badge

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

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

###  Alternatives

[kartik-v/yii2-password

Useful password strength validation utilities for Yii Framework 2.0

761.2M17](/packages/kartik-v-yii2-password)[better-futures-studio/filament-local-logins

This is my package filament-local-logins

1334.6k](/packages/better-futures-studio-filament-local-logins)

PHPackages © 2026

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