PHPackages                             mibo/px - 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. mibo/px

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

mibo/px
=======

PHP Library for Permissions \[RBAC\]

1.1.8(1mo ago)010.1k↓34.6%[1 PRs](https://github.com/4513/px/pulls)MITPHPPHP ^8.2CI passing

Since Dec 4Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/4513/px)[ Packagist](https://packagist.org/packages/mibo/px)[ RSS](/packages/mibo-px/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (22)Versions (11)Used By (0)

PX
==

[](#px)

[![codecov](https://camo.githubusercontent.com/b7534d10f470dade4b9986cd666255a1c4f902c27021cab05b53fb34a711a294/68747470733a2f2f636f6465636f762e696f2f67682f343531332f70782f67726170682f62616467652e7376673f746f6b656e3d474459413337474d5843)](https://codecov.io/gh/4513/px)

Permissions and their evaluating. Role Based System.

Implementation
--------------

[](#implementation)

```
composer require mibo/px
```

### Requirements

[](#requirements)

- PHP ^8.0
- illuminate/support ^10.0-^12.0

Usage
-----

[](#usage)

```
// Load the user that has permissions.
/** @var \MiBo\PX\Contracts\HasPermissionsInterface $user */
$user;

if ($user->hasPermission("my.own.permission")) {
    // Do some action
} else {
    // You may log that the user is missing required permission.
}
```

When implementing the interface, consider to use provided trait. If doing so, call `registerPermissions` method with all available permissions for the user:

```
class MyUser implements \MiBo\PX\Contracts\HasPermissionsInterface
{
    use \MiBo\PX\Contracts\HasPermissionsTrait;

    public function __construct()
    {
        $this->registerPermissions(
            [
                "my.own.permission",
                "my.another.permission"
            ]
        );
    }
}
```

###  Health Score

50

—

FairBetter than 96% of packages

Maintenance89

Actively maintained with recent releases

Popularity24

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 83.3% 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 ~134 days

Recently: every ~241 days

Total

10

Last Release

55d ago

PHP version history (3 changes)1.0.0PHP ^8.0

1.1.2PHP ^8.1

1.1.6PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/0866c3280ed62cfc74feb086241ec9ee56bab89b4fa2b8c8a3dbd62508761b6a?d=identicon)[MiBo](/maintainers/MiBo)

---

Top Contributors

[![4513](https://avatars.githubusercontent.com/u/25705559?v=4)](https://github.com/4513 "4513 (15 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")

---

Tags

authauthorizationpermissionsrbacrole-based-access-controlpxPerms

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mibo-px/health.svg)

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

###  Alternatives

[hasinhayder/tyro

Tyro - The ultimate Authentication, Authorization, and Role &amp; Privilege Management solution for Laravel 12 &amp; 13

6712.1k2](/packages/hasinhayder-tyro)[hosseinhezami/laravel-permission-manager

Advanced permission manager for Laravel.

403.3k](/packages/hosseinhezami-laravel-permission-manager)[phpzen/laravel-rbac

Role based access control for Laravel 5

383.2k](/packages/phpzen-laravel-rbac)

PHPackages © 2026

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