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

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

darkmatus/roleuserbridge
========================

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

1621.6k↓40.6%21PHP

Since Jul 15Pushed 9y ago5 watchersCompare

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

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

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity37

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 71.4% 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://avatars.githubusercontent.com/u/2587708?v=4)[Michael](/maintainers/Darkmatus)[@darkmatus](https://github.com/darkmatus)

---

Top Contributors

[![darkmatus](https://avatars.githubusercontent.com/u/2587708?v=4)](https://github.com/darkmatus "darkmatus (30 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)")[![Amalric](https://avatars.githubusercontent.com/u/6068591?v=4)](https://github.com/Amalric "Amalric (1 commits)")[![BreyndotEchse](https://avatars.githubusercontent.com/u/2163881?v=4)](https://github.com/BreyndotEchse "BreyndotEchse (1 commits)")[![DanPir](https://avatars.githubusercontent.com/u/3583073?v=4)](https://github.com/DanPir "DanPir (1 commits)")

### Embed Badge

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

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

###  Alternatives

[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)[illuminate/auth

The Illuminate Auth package.

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

A flexible, driver based Acl package for PHP 5.4+

870304.7k2](/packages/beatswitch-lock)[amocrm/amocrm-api-library

amoCRM API Client

182728.5k6](/packages/amocrm-amocrm-api-library)[vonage/jwt

A standalone package for creating JWTs for Vonage APIs

424.1M4](/packages/vonage-jwt)

PHPackages © 2026

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