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

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

vadim-skorba/roleuserbridge
===========================

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

011PHP

Since Aug 26Pushed 11y ago1 watchersCompare

[ Source](https://github.com/vadim-skorba/roleuserbridge)[ Packagist](https://packagist.org/packages/vadim-skorba/roleuserbridge)[ RSS](/packages/vadim-skorba-roleuserbridge/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)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, BjyAuthorize

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

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 65.1% 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/6a49f238dfb3ad9595ddecdc006245d30397a64efe64ae7bfd3d817b03835833?d=identicon)[vadim-skorba-gamespree](/maintainers/vadim-skorba-gamespree)

---

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)")[![vadim-skorba](https://avatars.githubusercontent.com/u/1416910?v=4)](https://github.com/vadim-skorba "vadim-skorba (2 commits)")[![vadim-skorba-gamespree](https://avatars.githubusercontent.com/u/6338006?v=4)](https://github.com/vadim-skorba-gamespree "vadim-skorba-gamespree (2 commits)")[![Amalric](https://avatars.githubusercontent.com/u/6068591?v=4)](https://github.com/Amalric "Amalric (1 commits)")[![DanPir](https://avatars.githubusercontent.com/u/3583073?v=4)](https://github.com/DanPir "DanPir (1 commits)")

### Embed Badge

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

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

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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