PHPackages                             shafayat/permission-checker - 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. shafayat/permission-checker

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

shafayat/permission-checker
===========================

A package to add,remove and check permission to function or route

v1.0.0(1y ago)01MITPHPPHP ^8.2

Since Dec 7Pushed 1y ago1 watchersCompare

[ Source](https://github.com/jQsafi/permission-checker)[ Packagist](https://packagist.org/packages/shafayat/permission-checker)[ RSS](/packages/shafayat-permission-checker/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Permission Checker laravel package
==================================

[](#permission-checker-laravel-package)

A Laravel package for managing user based permission. This will used to check specific user has necessary permission for doing specific operation. Easy to add,remove and check permission.

Features
--------

[](#features)

- Add Permission
- Remove permission
- Check Permission

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

[](#installation)

Install permission-checker using composer

```
  composer require shafayat/permission-checker
```

```
  composer install
```

Usage/Examples
--------------

[](#usageexamples)

### Add Permission

[](#add-permission)

```
$permissionService = resolve('permission_checker');
$saved = $permissionService->addPermission($userId,"view_posts");
```

### Remove Permission

[](#remove-permission)

```
$permissionService = resolve('permission_checker');
$saved = $permissionService->removePermission($userID,"view_posts");
```

### Check Permission

[](#check-permission)

```
$permissionService = resolve('permission_checker');
$saved = $permissionService->hasPermission($userID,"view_posts");
 if ( !$hasPermission ) {
        return "You have no permission to access this url";
}
```

Test
----

[](#test)

```
php artisan test
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

521d ago

### Community

Maintainers

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

---

Top Contributors

[![jQsafi](https://avatars.githubusercontent.com/u/4918942?v=4)](https://github.com/jQsafi "jQsafi (8 commits)")

### Embed Badge

![Health badge](/badges/shafayat-permission-checker/health.svg)

```
[![Health](https://phpackages.com/badges/shafayat-permission-checker/health.svg)](https://phpackages.com/packages/shafayat-permission-checker)
```

###  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.4M43](/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)
