PHPackages                             tadeas-j/permissions - 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. tadeas-j/permissions

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

tadeas-j/permissions
====================

An easy permissions for Laravel 5.

015PHP

Since Apr 9Pushed 11y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Permissions
===========

[](#permissions)

An easy Laravel 5 permissions package.

Installation via Composer
-------------------------

[](#installation-via-composer)

```
require : {
  "tadeas-j/permissions": "dev-master"
}

```

Next, what you need to do is to run.

```
composer update

```

Now, you have successfully installed the package.

Next required step is to add package's service provider to laravel application config, which is located in 'app/config/app.php'.

```
'Permissions' => 'Permissions\Providers\PermissionsProvider'

```

And lastly for configuring our permissions and roles we need to publish 'config.php' file to '/config/permissions/config.php'.

```
php artisan vendor:publish

```

(Optional) Using package's facade
---------------------------------

[](#optional-using-packages-facade)

I highly recommend u to use package's prepared facade, only thing, what you need to do, is to register it in 'app/config/app.php'.

```
'Permissions' => 'Permissions\Facades\Permissions'

```

(Important) Configuration
-------------------------

[](#important-configuration)

Configuration file should be published to '/config/permissions/config.php'. If you missed it, you can do it easilly with calling this command.

```
php artisan vendor:publish

```

At first, you need to put 'role' column to your users table. Default 'config.php' file looks like this.

```
$aliases = array(
	'manage' => ['create', 'delete', 'edit']
);

$roles = array(
	'admin' => [
		'manage.users',
	]
);

```

This means, that role 'admin' is allowed to manage.users, 'manage' is alias to 'create', 'delete' and 'edit'. So it is the same like this.

```
$aliases = array();

$roles = array(
	'admin' => [
		'create.users',
		'delete.users',
		'edit.users',
	]
);

```

Using package
-------------

[](#using-package)

So let's think about, that we have got one user with role 'admin', 'admin' role is allowed for 'create.users', and the code below is exactly, what we need to do in our creating proccess.

```
Permissions::can('create.users');

```

This will get our logged user, his permissions and then it will check them. If we want to check permissions of user with ID 1 for example, we will just easilly do this.

```
Permissions::can('create.users', User::find(1));

```

There is also a trait, what you can use.

```
Permissions\PermissionsTrait

```

After using this trait in your user model, you will be allowed to do something like this.

```
Auth::user()->can('create.users');

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/50778434444c2c8e264245b62434af300be164fa06bc8e80563e193522028436?d=identicon)[TadeasJ](/maintainers/TadeasJ)

---

Top Contributors

[![tadeas-j](https://avatars.githubusercontent.com/u/7239962?v=4)](https://github.com/tadeas-j "tadeas-j (2 commits)")

### Embed Badge

![Health badge](/badges/tadeas-j-permissions/health.svg)

```
[![Health](https://phpackages.com/badges/tadeas-j-permissions/health.svg)](https://phpackages.com/packages/tadeas-j-permissions)
```

###  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)
