PHPackages                             smasherhell/roleuserbridge - 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. smasherhell/roleuserbridge

ActiveLibrary

smasherhell/roleuserbridge
==========================

ZfcUser/BjyAuthorize Bridge for auto-adding User to the user\_role\_table from BjyAuthorize.

012PHP

Since Feb 22Pushed 11y ago1 watchersCompare

[ Source](https://github.com/SmasherHell/roleuserbridge)[ Packagist](https://packagist.org/packages/smasherhell/roleuserbridge)[ RSS](/packages/smasherhell-roleuserbridge/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

ZfcUser-BjyAuthorize-Bridge
===========================

[](#zfcuser-bjyauthorize-bridge)

ZfcUser/BjyAuthorize Bridge for auto-adding User to the user\_role\_table from BjyAuthorize

Requires: ZF2 latest master, ZfcUser latest master, BjyAuthorize latest master

Installation:

- Install ZfcUser and BjyAuthorize as shown on thier pagesdingus
- Copy the ZfcUser/BjyAuthorize Bridge into your module or vendor directory
- Copy 'roleuserbridge/config/roleuserbridge.config.php' to your 'config/autoload/'
- add a entry to your application.config.php with 'RoleUserBridge'

Comments:

The bridge works by automatically adding an entry to the user\_role\_linker table so
that new users are automatically registered with a 'user' role.

At this moment there is no administration backend to change the role of a User after
registration (only with DB-Tools).
If you need an admin you must edit your user\_role\_linker table manually.

If you have created your own linker-table, you must edit the linker.config.php with your own table name.
In linker.config.php you must also configure the id of the user record as you have set it up in
your 'user\_role' table. For example, if your role table looks like this:

```
mysql> SELECT * FROM `user_role`;
+----+---------+------------+-----------+
| id | role\_id | is\_default | parent\_id |
+----+---------+------------+-----------+
|  1 | guest   |          1 |      NULL |
|  2 | user    |          0 |      NULL |
|  3 | admin   |          0 |         2 |
+----+---------+------------+-----------+
3 rows in set (0.00 sec)
```

you should modify the roleuserbridge.config.php so that
'user\_role\_id' =&gt; 2

!!!ATTENTION!!!

For compatibility with packagist the repo was renamed to lowercase characters

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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/8f18f53ea89bbe62b63df174eba8b39060ecf857f568668b02bab7715d5f0f12?d=identicon)[SmasherHell](/maintainers/SmasherHell)

---

Top Contributors

[![darkmatus](https://avatars.githubusercontent.com/u/2587708?v=4)](https://github.com/darkmatus "darkmatus (28 commits)")[![mikekelly1](https://avatars.githubusercontent.com/u/1043701?v=4)](https://github.com/mikekelly1 "mikekelly1 (7 commits)")[![fadoe](https://avatars.githubusercontent.com/u/1300722?v=4)](https://github.com/fadoe "fadoe (2 commits)")[![SmasherHell](https://avatars.githubusercontent.com/u/4428760?v=4)](https://github.com/SmasherHell "SmasherHell (2 commits)")[![InfolegaleGBouchez](https://avatars.githubusercontent.com/u/85341072?v=4)](https://github.com/InfolegaleGBouchez "InfolegaleGBouchez (1 commits)")[![DanPir](https://avatars.githubusercontent.com/u/3583073?v=4)](https://github.com/DanPir "DanPir (1 commits)")[![Amalric](https://avatars.githubusercontent.com/u/6068591?v=4)](https://github.com/Amalric "Amalric (1 commits)")

### Embed Badge

![Health badge](/badges/smasherhell-roleuserbridge/health.svg)

```
[![Health](https://phpackages.com/badges/smasherhell-roleuserbridge/health.svg)](https://phpackages.com/packages/smasherhell-roleuserbridge)
```

PHPackages © 2026

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