PHPackages                             parsampsh/simpermission - 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. parsampsh/simpermission

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

parsampsh/simpermission
=======================

A Package to handle permissions for users in the laravel applications

v0.1.2(4y ago)37MITPHPPHP ^7.4|^8.0

Since Jul 21Pushed 4y ago1 watchersCompare

[ Source](https://github.com/parsampsh/simpermission)[ Packagist](https://packagist.org/packages/parsampsh/simpermission)[ RSS](/packages/parsampsh-simpermission/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (4)Versions (4)Used By (0)

Simpermission - A PHP library for Laravel
=========================================

[](#simpermission---a-php-library-for-laravel)

Simpermission is a PHP library for implementing a simple permission management system for users in laravel apps.

Features:

```
$user->addPermission('what.i.want');
$user->deletePermission('what.i.want');
$user->getPermissions(); // ['foo.bar', 'hello.world'...]

if (! $user->hasPermission('some.thing')) {
    abort(403);
}
```

Getting started
---------------

[](#getting-started)

To get started with this package, first you need to install it in your laravel app using composer:

```
$ composer install parsampsh/simpermission
```

Then, you need to run the migrations:

```
$ php artisan migrate
```

Now, you have to add two things in your User model:

```
use Simpermission\HasPermissions;

class User
{
    // ...

    use HasPermissions;

    public function userIsManager()
    {
        return false;
    }

    // ...
}
```

You saw some methods like `addPermission` above that was added to your user model. The `HasPermissions` trait adds them to your model.

Also, there is another concept named **Manager user** or **Super user**. The manager user should access anything. When you use `hasPermission` method for checking a permission for a user, The same permission should be added via `addPermission` method. But for manager user, anything is allowed.

To determine that which user is manager(full permission access) and which one is not, you should implement a method named `userIsManager` in your user model:

```
class User
{
    // ...

    public function userIsManager()
    {
        // example
        return $this->is_manager === 1;
    }

    // ...
}
```

License
-------

[](#license)

This project is licensed under [MIT](LICENSE).

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Every ~87 days

Total

3

Last Release

1579d ago

### Community

Maintainers

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

---

Top Contributors

[![parsampsh](https://avatars.githubusercontent.com/u/52998087?v=4)](https://github.com/parsampsh "parsampsh (12 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/parsampsh-simpermission/health.svg)

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

###  Alternatives

[lab404/laravel-impersonate

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

2.3k16.4M48](/packages/lab404-laravel-impersonate)[santigarcor/laratrust

This package provides a flexible way to add Role-based Permissions to Laravel

2.3k5.4M42](/packages/santigarcor-laratrust)[overtrue/laravel-follow

User follow unfollow system for Laravel.

1.2k404.7k5](/packages/overtrue-laravel-follow)[codegreencreative/laravel-samlidp

Make your PHP Laravel application an Identification Provider using SAML 2.0. This package allows you to implement your own Identification Provider (idP) using the SAML 2.0 standard to be used with supporting SAML 2.0 Service Providers (SP).

263763.5k1](/packages/codegreencreative-laravel-samlidp)

PHPackages © 2026

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