PHPackages                             binssoft/permissionmanager - 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. binssoft/permissionmanager

ActiveLibrary

binssoft/permissionmanager
==========================

It is a permission manager library for laravel

1.0.0(6y ago)04MITPHPPHP ^7.2

Since Sep 3Pushed 6y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

Laravel Permission Management
=============================

[](#laravel-permission-management)

A permission management system to handel the user role in a [Laravel 5](http://www.laravel.com) project.

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

[](#installation)

This package is only installed via [composer](http://getcomposer.org) by requiring the

`composer require binssoft/permissionmanager`

package in your project's `composer.json`. (The installation may take a while.)

```
{
  "require": {
     "binssoft/permissionmanager": ""
  }
}
```

Next, add the service provider to `config/app.php`.

```
'providers' => [
 ...
    Binssoft\Permissionmanager\PermissionManagerServiceProvider::class
]
```

```
'aliases' => [
...
 'Permission'=> Binssoft\Permissionmanager\PermissionManager::class
 ]
```

Configuration
-------------

[](#configuration)

```
php artisan vendor:publish

```

```
php artisan migrate

```

After proper vendor publish few files are created and 4 tables will be created in the configured database after migration.

1. in `app/` folder 4 models will generated `Roles.php`, `Navigations.php`, `UserRoles.php`, `RolePermissions.php`
2. in `database\seeds` folder `RoleSeeder.php` will be created

```
php artisan db:seed --class=RoleSeeder

```

Few demo role records will be inserted in the `roles` Table

#### Now your permission library is configured perfectly.

[](#now-your-permission-library-is-configured-perfectly)

How to Uses
-----------

[](#how-to-uses)

```
use Permission;

```

### Assign user Role

[](#assign-user-role)

```
Permission::assignUserRole(,);

```

### Get user Role

[](#get-user-role)

```
Permission::getUserRole();

```

### Get all navigations

[](#get-all-navigations)

```
Permission::navigations(['namespace'=>["admin"]]);

```

namespace will be a array with value of your different namespaces like admin,site etc.

### Set role Permission

[](#set-role-permission)

- 1st parameter : role id
- 2nd parameter : route name
- 3rd parameter : want to save or delete (true/false)

```
Permission::setRolePermission(1, 'admin_user_list', true);

```

### Check current route access permission

[](#check-current-route-access-permission)

```
$permission = Permission::access();

```

`$permission` will return `true` or `flase`

#### That's it! You're good to go.

[](#thats-it--youre-good-to-go)

Please click on "Star" in github if it is usefull for you.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

2447d ago

### Community

Maintainers

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

---

Top Contributors

[![tonmoynandy](https://avatars.githubusercontent.com/u/5344854?v=4)](https://github.com/tonmoynandy "tonmoynandy (3 commits)")

---

Tags

laravelpermissionroleuserrole

### Embed Badge

![Health badge](/badges/binssoft-permissionmanager/health.svg)

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

###  Alternatives

[sereny/nova-permissions

Laravel Nova - Roles &amp; Permissions

86388.6k1](/packages/sereny-nova-permissions)[efficiently/authority-controller

AuthorityController is an PHP authorization library for Laravel 5 which restricts what resources a given user is allowed to access.

15533.2k](/packages/efficiently-authority-controller)[cgross/laraguard

Permissions/roles for Laravel 5

388.6k](/packages/cgross-laraguard)[dlnsk/h-rbac

Based on native Laravel's gates and policies. Hierarchical RBAC with callbacks.

378.3k](/packages/dlnsk-h-rbac)

PHPackages © 2026

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