PHPackages                             icybee/module-users-roles - 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. icybee/module-users-roles

ActiveIcanboogie-module

icybee/module-users-roles
=========================

Provides roles for users.

v3.0.0(9y ago)01511BSD-3-ClausePHPPHP &gt;=5.5.0

Since Oct 17Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Icybee/module-users-roles)[ Packagist](https://packagist.org/packages/icybee/module-users-roles)[ RSS](/packages/icybee-module-users-roles/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (2)Versions (4)Used By (1)

Roles
=====

[](#roles)

[![Release](https://camo.githubusercontent.com/3b0ad0455a041f09a9caeb709369267a3678ee7955f45b5cf1191cd336d51939/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6963796265652f6d6f64756c652d75736572732d726f6c65732e737667)](https://packagist.org/packages/icybee/module-users-roles)[![Build Status](https://camo.githubusercontent.com/7bcedbd87cce4c22f51d2224516188d8ec7d9334ba5bdf53cbff106755723fdd/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f4963796265652f6d6f64756c652d75736572732d726f6c65732f6d61737465722e737667)](https://travis-ci.org/Icybee/module-users-roles)[![HHVM](https://camo.githubusercontent.com/1729a7aaf1154736f0a0a6e56ac41d1a6eaa30045562fd18767e988a2a865037/68747470733a2f2f696d672e736869656c64732e696f2f6868766d2f6963796265652f6d6f64756c652d75736572732d726f6c65732e737667)](http://hhvm.h4cc.de/package/icybee/module-users-roles)[![Code Quality](https://camo.githubusercontent.com/338a97e238aa81f564c423733a1859f123789e01d93dc4c7e2198d4547132934/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f4963796265652f6d6f64756c652d75736572732d726f6c65732f6d61737465722e737667)](https://scrutinizer-ci.com/g/Icybee/module-users-roles)[![Code Coverage](https://camo.githubusercontent.com/ba60c790ae63cc1ed71eda98efeb501b02f04dd66f225bacf573068ffc8d9bb5/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f4963796265652f6d6f64756c652d75736572732d726f6c65732f6d61737465722e737667)](https://coveralls.io/r/Icybee/module-users-roles)[![Packagist](https://camo.githubusercontent.com/d09e07a52d6babbe59b4f3cf988066eaaae04dba747478b7e3a05333367f5459/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6963796265652f6d6f64756c652d75736572732d726f6c65732e737667)](https://packagist.org/packages/icybee/module-users-roles)

Provides roles for users.

Bindings
--------

[](#bindings)

The following prototype bindings are provided for [User](https://github.com/Icybee/module-users/blob/3.0/lib/User.php) instances:

- `$roles`: The roles associated with a user.

    ```
     $user->roles; // Icybee\Modules\Users\Roles\Role[]
    ```
- `$role`: The aggregate role associated with a user.

    ```
     $user->role; // Icybee\Modules\Users\Roles\Role
    ```

---

Requirement
-----------

[](#requirement)

The package requires PHP 5.5 or later.

Installation
------------

[](#installation)

The recommended way to install this package is through [Composer](http://getcomposer.org/):

```
$ composer require icybee/module-users-roles

```

This module is part of the modules required by [Icybee](http://icybee.org).

### Cloning the repository

[](#cloning-the-repository)

The package is [available on GitHub](https://github.com/Icybee/module-users-roles-roles), its repository can be cloned with the following command line:

```
$ git clone https://github.com/Icybee/module-users-roles.git users.roles

```

Documentation
-------------

[](#documentation)

The package is documented as part of the [Icybee](http://icybee.org/) CMS [documentation](http://icybee.org/docs/). The documentation for the package and its dependencies can be generated with the `make doc` command. The documentation is generated in the `docs` directory using [ApiGen](http://apigen.org/). The package directory can later by cleaned with the `make clean` command.

License
-------

[](#license)

The module is licensed under the New BSD License - See the LICENSE file for details.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

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

Total

3

Last Release

1759d ago

Major Versions

v2.0.0 → v3.0.02016-07-09

v3.0.0 → 4.0.x-dev2021-07-19

PHP version history (3 changes)v2.0.0PHP &gt;=5.3.0

v3.0.0PHP &gt;=5.5.0

4.0.x-devPHP &gt;=5.6

### Community

Maintainers

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

---

Top Contributors

[![olvlvl](https://avatars.githubusercontent.com/u/155998?v=4)](https://github.com/olvlvl "olvlvl (20 commits)")

---

Tags

userroles

### Embed Badge

![Health badge](/badges/icybee-module-users-roles/health.svg)

```
[![Health](https://phpackages.com/badges/icybee-module-users-roles/health.svg)](https://phpackages.com/packages/icybee-module-users-roles)
```

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k89.8M1.0k](/packages/spatie-laravel-permission)[spatie/laravel-activitylog

A very simple activity logger to monitor the users of your website or application

5.8k45.4M309](/packages/spatie-laravel-activitylog)[lab404/laravel-impersonate

Laravel Impersonate is a plugin that allows to you to authenticate as your users.

2.3k16.4M48](/packages/lab404-laravel-impersonate)[torann/promise

Simple Roles and Permissions for Laravel 5.

131.1k](/packages/torann-promise)[org_heigl/hybridauth

Lightweight Authentication Module for Zend-Framework 2 using the hybridauth-library

211.9k](/packages/org-heigl-hybridauth)

PHPackages © 2026

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