PHPackages                             oslllo/larakey - 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. oslllo/larakey

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

oslllo/larakey
==============

Permissions and Roles For Laravel

10PHP

Since Mar 18Pushed 5y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

Larakey - (Permissions and Roles For Laravel)
=============================================

[](#larakey---permissions-and-roles-for-laravel)

[![Packagist Version (including pre-releases)](https://camo.githubusercontent.com/61467b8ca12185304832059595ecb5d7719a952605a63aead1984d2e9f0579cb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f736c6c6c6f2f6c6172616b65793f696e636c7564655f70726572656c6561736573)](https://camo.githubusercontent.com/61467b8ca12185304832059595ecb5d7719a952605a63aead1984d2e9f0579cb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f736c6c6c6f2f6c6172616b65793f696e636c7564655f70726572656c6561736573)[![Travis (.org) branch](https://camo.githubusercontent.com/049a7b049769d33f3b63ebcd8158871c8d6bc5e3f248a8a93f0e08787740f522/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6f736c6c6c6f2f6c6172616b65792f6d61737465723f6c6162656c3d5472617669732532304349)](https://camo.githubusercontent.com/049a7b049769d33f3b63ebcd8158871c8d6bc5e3f248a8a93f0e08787740f522/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6f736c6c6c6f2f6c6172616b65792f6d61737465723f6c6162656c3d5472617669732532304349)[![GitHub](https://camo.githubusercontent.com/114a82011e42007039b9cf5db931dec92c6090f0820a7885c42cf2a6573f1912/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f4f736c6c6c6f2f6c6172616b6579)](https://camo.githubusercontent.com/114a82011e42007039b9cf5db931dec92c6090f0820a7885c42cf2a6573f1912/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f4f736c6c6c6f2f6c6172616b6579)[![GitHub issues](https://camo.githubusercontent.com/a4e34dcb3bd93d08e1f32e83d5bcb5229deec69b30623b3259f2fdd7125266da/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f4f736c6c6c6f2f6c6172616b6579)](https://camo.githubusercontent.com/a4e34dcb3bd93d08e1f32e83d5bcb5229deec69b30623b3259f2fdd7125266da/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f4f736c6c6c6f2f6c6172616b6579)[![GitHub closed issues](https://camo.githubusercontent.com/5dc35e5f490ff2c22e282948edb8b586ce86285d56b4ee994ced718073b64ac0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732d636c6f7365642f4f736c6c6c6f2f6c6172616b6579)](https://camo.githubusercontent.com/5dc35e5f490ff2c22e282948edb8b586ce86285d56b4ee994ced718073b64ac0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732d636c6f7365642f4f736c6c6c6f2f6c6172616b6579)

Features
--------

[](#features)

- Assign permissions and roles to users.
- Assign a permission to a class to a user.
- Assign a permission to a model instances to a user.
- Permission caching.

Documentation, Installation, and Usage Instructions
---------------------------------------------------

[](#documentation-installation-and-usage-instructions)

Testing
-------

[](#testing)

```
composer test
```

Questions and issues
--------------------

[](#questions-and-issues)

For any questions and issues feel free to [create an issue on GitHub](https://github.com/Oslllo/larakey/issues), we’ll try to address it as soon as possible.

If you’ve found a bug regarding security please mail  instead of using the issue tracker.

Changelog
---------

[](#changelog)

Please see [CHANGELOG](https://github.com/Oslllo/larakey/blob/master/CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security-related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

This package is a fork of [laravel-permissions](https://github.com/spatie/laravel-permission) by [Freek Van der Herten](https://github.com/freekmurze) and [All Contributors](https://github.com/spatie/laravel-permission/contributors).

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

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/03eb7c27a5e6cf7189ee41e8ff307186e371470868b6aff3316748bd06715ed5?d=identicon)[ghustavh97](/maintainers/ghustavh97)

---

Top Contributors

[![drbyte](https://avatars.githubusercontent.com/u/404472?v=4)](https://github.com/drbyte "drbyte (329 commits)")[![freekmurze](https://avatars.githubusercontent.com/u/483853?v=4)](https://github.com/freekmurze "freekmurze (253 commits)")[![Ghustavh97](https://avatars.githubusercontent.com/u/20132952?v=4)](https://github.com/Ghustavh97 "Ghustavh97 (54 commits)")[![AlexVanderbist](https://avatars.githubusercontent.com/u/6287961?v=4)](https://github.com/AlexVanderbist "AlexVanderbist (40 commits)")[![sebastiandedeyne](https://avatars.githubusercontent.com/u/1561079?v=4)](https://github.com/sebastiandedeyne "sebastiandedeyne (14 commits)")[![tomlankhorst](https://avatars.githubusercontent.com/u/675432?v=4)](https://github.com/tomlankhorst "tomlankhorst (11 commits)")[![musapinar](https://avatars.githubusercontent.com/u/7329873?v=4)](https://github.com/musapinar "musapinar (7 commits)")[![springleng](https://avatars.githubusercontent.com/u/1900972?v=4)](https://github.com/springleng "springleng (6 commits)")[![sergejostir](https://avatars.githubusercontent.com/u/21297285?v=4)](https://github.com/sergejostir "sergejostir (6 commits)")[![artissant](https://avatars.githubusercontent.com/u/2280426?v=4)](https://github.com/artissant "artissant (5 commits)")[![lowerends](https://avatars.githubusercontent.com/u/6588791?v=4)](https://github.com/lowerends "lowerends (4 commits)")[![barryatswisnl](https://avatars.githubusercontent.com/u/18284224?v=4)](https://github.com/barryatswisnl "barryatswisnl (4 commits)")[![ctf0](https://avatars.githubusercontent.com/u/7388088?v=4)](https://github.com/ctf0 "ctf0 (3 commits)")[![matthewgoslett](https://avatars.githubusercontent.com/u/1571743?v=4)](https://github.com/matthewgoslett "matthewgoslett (3 commits)")[![fullstackfool](https://avatars.githubusercontent.com/u/14146557?v=4)](https://github.com/fullstackfool "fullstackfool (3 commits)")[![kylekatarnls](https://avatars.githubusercontent.com/u/5966783?v=4)](https://github.com/kylekatarnls "kylekatarnls (3 commits)")[![cesargb](https://avatars.githubusercontent.com/u/25681494?v=4)](https://github.com/cesargb "cesargb (3 commits)")[![lloricode](https://avatars.githubusercontent.com/u/8251344?v=4)](https://github.com/lloricode "lloricode (3 commits)")[![mattdfloyd](https://avatars.githubusercontent.com/u/185187?v=4)](https://github.com/mattdfloyd "mattdfloyd (3 commits)")[![ziming](https://avatars.githubusercontent.com/u/679513?v=4)](https://github.com/ziming "ziming (2 commits)")

### Embed Badge

![Health badge](/badges/oslllo-larakey/health.svg)

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

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[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)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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