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)27MITPHPPHP ^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 3w ago

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 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

1633d 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

[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135224.7k7](/packages/statamic-rad-pack-runway)[jeremy379/laravel-openid-connect

OpenID Connect support to the PHP League's OAuth2 Server. Compatible with Laravel Passport.

59437.0k8](/packages/jeremy379-laravel-openid-connect)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21318.6k3](/packages/ecotone-laravel)

PHPackages © 2026

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