PHPackages                             rickselby/laravel-permissions-setup - 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. rickselby/laravel-permissions-setup

Abandoned → [rickselby/laravel-permission-setup](/?search=rickselby%2Flaravel-permission-setup)ArchivedLibrary[Authentication &amp; Authorization](/categories/authentication)

rickselby/laravel-permissions-setup
===================================

Setting up permissions

v4.6.0(2y ago)1181MITPHP

Since Feb 17Pushed 2y ago1 watchersCompare

[ Source](https://github.com/rickselby/laravel-permission-setup)[ Packagist](https://packagist.org/packages/rickselby/laravel-permissions-setup)[ Docs](https://github.com/rickselby/laravel-permission-setup)[ RSS](/packages/rickselby-laravel-permissions-setup/feed)WikiDiscussions main Synced today

READMEChangelog (10)Dependencies (2)Versions (14)Used By (0)

Initialise Permissions
======================

[](#initialise-permissions)

When using [spatie/laravel-permission](https://github.com/spatie/laravel-permission) I have a pattern I always follow; I only use permissions in the code, not roles. Since the permissions will be hard-coded, I want a way of creating the permissions in the database from a list.

This really, really simple class loads a list of permissions from `config/permissions.php` and creates them (if they don't already exist).

Install the package using composer:

```
$ composer require rickselby/laravel-permission-setup
```

Then, if using Laravel 5.4, add the service provider to the providers array:

```
// config/app.php
'providers' => [
    ...
    RickSelby\Permission\PermissionServiceProvider::class,
];
```

You can publish the default permissions config file with

```
php artisan vendor:publish --provider="RickSelby\Permission\PermissionServiceProvider" --tag="config"
```

Now, you can load and reload the list of permissions with the artisan command:

```
php artisan permission:update
```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 95.2% 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 ~215 days

Recently: every ~130 days

Total

13

Last Release

840d ago

Major Versions

v1.0 → v2.02017-09-29

v2.0 → v3.02017-12-18

v3.0 → v4.02020-05-16

v3.x-dev → v4.2.02022-10-08

### Community

Maintainers

![](https://www.gravatar.com/avatar/6cc8910980f053d8ceb2e9d938427cf03ae509884763a10f916b4eef5591934f?d=identicon)[rickselby](/maintainers/rickselby)

---

Top Contributors

[![rickselby](https://avatars.githubusercontent.com/u/1564517?v=4)](https://github.com/rickselby "rickselby (20 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (1 commits)")

---

Tags

laravelpermissionrickselby

### Embed Badge

![Health badge](/badges/rickselby-laravel-permissions-setup/health.svg)

```
[![Health](https://phpackages.com/badges/rickselby-laravel-permissions-setup/health.svg)](https://phpackages.com/packages/rickselby-laravel-permissions-setup)
```

###  Alternatives

[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k3.5M118](/packages/bezhansalleh-filament-shield)[sereny/nova-permissions

Laravel Nova - Roles &amp; Permissions

87432.2k1](/packages/sereny-nova-permissions)[sametsahindogan/laravel-jwtredis

This package allows JWT-authenticated users to be stored and management in Redis with their roles, permissions, statuses and anything you want.

1222.0k](/packages/sametsahindogan-laravel-jwtredis)

PHPackages © 2026

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