PHPackages                             heteria/shinobi - 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. heteria/shinobi

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

heteria/shinobi
===============

Laravel Roles and Permissions

03PHP

Since Oct 1Pushed 3y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Heteria Shinobi
===============

[](#heteria-shinobi)

[![Source](https://camo.githubusercontent.com/564cfd04616843a77e783f8fce52f7b777f8b8de158e2007c6abfc07378b3eb1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d6361666665696e617465642f7368696e6f62692d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/caffeinated/shinobi)[![Latest Stable Version](https://camo.githubusercontent.com/be8b13f3745e562b584c7863fa209634aedd36b64b6d43bc502e18918bf5949f/68747470733a2f2f706f7365722e707567782e6f72672f6361666665696e617465642f7368696e6f62692f762f737461626c653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/caffeinated/shinobi)[![License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://tldrlegal.com/license/mit-license)[![Total Downloads](https://camo.githubusercontent.com/5a7b632705c94ea19605ef7f94857c553c013f38b986188fd98b0d62f089c8e2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6361666665696e617465642f7368696e6f62692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/caffeinated/shinobi)[![Travis (.org)](https://camo.githubusercontent.com/9690a1dc61724164160520a7c29890c6440870e6db7835f0ca02f450c7d8fb0b/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6361666665696e617465642f7368696e6f62692e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/caffeinated/shinobi)

A simple and light-weight role-based permissions system for Laravel's Authorization Gate system. Originally developed for [FusionCMS](https://github.com/fusioncms/fusioncms), an open source content management system.

- Every user can have zero or more permissions.
- Every user can have zero or more roles.
- Every role can have zero or more permissions.
- Every role can have one of two special flags, `all-access` and `no-access`

Documentation
-------------

[](#documentation)

You will find user friendly and updated documentation on the [Heteria website](https://caffeinatedpackages.com/guide/packages/shinobi.html).

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

[](#installation)

Simply install the package through Composer. From here the package will automatically register its service provider and `Shinobi` facade.

```
composer require heteria/shinobi

```

### Config

[](#config)

To publish the config file, run the following:

```
php artisan vendor:publish --provider="Heteria\Shinobi\ShinobiServiceProvider" --tag="config"

```

Changelog
---------

[](#changelog)

You will find a complete changelog history within the [CHANGELOG](CHANGELOG.md) file.

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

[](#contributing)

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

Testing
-------

[](#testing)

Run tests with PHPUnit:

```
vendor/bin/phpunit
```

Security
--------

[](#security)

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

Credits
-------

[](#credits)

- [Shea Lewis](https://github.com/kaidesu)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 Bus Factor1

Top contributor holds 81.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.

### Community

Maintainers

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

---

Top Contributors

[![kaidesu](https://avatars.githubusercontent.com/u/355659?v=4)](https://github.com/kaidesu "kaidesu (112 commits)")[![mgsmus](https://avatars.githubusercontent.com/u/543371?v=4)](https://github.com/mgsmus "mgsmus (4 commits)")[![bretto36](https://avatars.githubusercontent.com/u/6217994?v=4)](https://github.com/bretto36 "bretto36 (2 commits)")[![landjea](https://avatars.githubusercontent.com/u/4738992?v=4)](https://github.com/landjea "landjea (2 commits)")[![gbrock](https://avatars.githubusercontent.com/u/4151394?v=4)](https://github.com/gbrock "gbrock (2 commits)")[![bart](https://avatars.githubusercontent.com/u/5200235?v=4)](https://github.com/bart "bart (2 commits)")[![pimlie](https://avatars.githubusercontent.com/u/1067403?v=4)](https://github.com/pimlie "pimlie (1 commits)")[![robburley](https://avatars.githubusercontent.com/u/8017920?v=4)](https://github.com/robburley "robburley (1 commits)")[![SergeyMiracle](https://avatars.githubusercontent.com/u/2399561?v=4)](https://github.com/SergeyMiracle "SergeyMiracle (1 commits)")[![Sierra-034](https://avatars.githubusercontent.com/u/21287747?v=4)](https://github.com/Sierra-034 "Sierra-034 (1 commits)")[![slzno](https://avatars.githubusercontent.com/u/44006503?v=4)](https://github.com/slzno "slzno (1 commits)")[![tariq86](https://avatars.githubusercontent.com/u/646561?v=4)](https://github.com/tariq86 "tariq86 (1 commits)")[![yajra](https://avatars.githubusercontent.com/u/2687997?v=4)](https://github.com/yajra "yajra (1 commits)")[![antoniopaisfernandes](https://avatars.githubusercontent.com/u/6171197?v=4)](https://github.com/antoniopaisfernandes "antoniopaisfernandes (1 commits)")[![zknulled](https://avatars.githubusercontent.com/u/17056601?v=4)](https://github.com/zknulled "zknulled (1 commits)")[![AxelanderK](https://avatars.githubusercontent.com/u/9843995?v=4)](https://github.com/AxelanderK "AxelanderK (1 commits)")[![CarlosH1107](https://avatars.githubusercontent.com/u/30251168?v=4)](https://github.com/CarlosH1107 "CarlosH1107 (1 commits)")[![chuckrincon](https://avatars.githubusercontent.com/u/16218846?v=4)](https://github.com/chuckrincon "chuckrincon (1 commits)")[![i6media](https://avatars.githubusercontent.com/u/14023039?v=4)](https://github.com/i6media "i6media (1 commits)")[![kaligari](https://avatars.githubusercontent.com/u/6985244?v=4)](https://github.com/kaligari "kaligari (1 commits)")

### Embed Badge

![Health badge](/badges/heteria-shinobi/health.svg)

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

###  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)
