PHPackages                             deltoss/sentinel-database-permissions - 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. deltoss/sentinel-database-permissions

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

deltoss/sentinel-database-permissions
=====================================

A laravel package that extends sentinel to use permissions from database tables.

1.0.0(7y ago)61101[1 issues](https://github.com/deltoss/sentinel-database-permissions/issues)1MITPHPPHP ^7.1.3

Since Jan 20Pushed 6y ago1 watchersCompare

[ Source](https://github.com/deltoss/sentinel-database-permissions)[ Packagist](https://packagist.org/packages/deltoss/sentinel-database-permissions)[ Docs](https://github.com/deltoss/sentinel-database-permissions)[ RSS](/packages/deltoss-sentinel-database-permissions/feed)WikiDiscussions master Synced 3d ago

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

[![CircleCI](https://camo.githubusercontent.com/18a99e151d2ce780c7e417733108f3b09c5b542ea184d854b82ed103bfcfa9a1/68747470733a2f2f636972636c6563692e636f6d2f67682f64656c746f73732f73656e74696e656c2d64617461626173652d7065726d697373696f6e732e7376673f7374796c653d737667)](https://circleci.com/gh/deltoss/sentinel-database-permissions)

Introduction
============

[](#introduction)

A [Laravel](https://github.com/laravel/laravel) package that configures Sentinel to use database permissions. [Cartalyst Sentinel](https://cartalyst.com/manual/sentinel/2.0) already has permissions, however their permissions are JSON values stored under the user or role record.

Some would prefer permissions to be a database table, to perform certain operations more efficiently when it comes to permissions. For example lets say we want to get a list of all permissions in the database.

In Cartalyst Sentinel, to get all permissions, you'd need to iterate through **all** users and roles, and for each of the user/role, you'd need to get their list of permissions and get only the distinct permissions. If you have a lot of users and roles, this approach won't be efficient. If you put permissions on a database table, then all you need to do is query that one table.

This package integrates with Sentinel and add its own set of methods. This means for the most part, you can use the Sentinel's API as per normal. The only caveat is before adding permissions, you'll need to create the `ability` on the database beforehand.

Requirements
============

[](#requirements)

- Laravel Framework 5.5+
- Cartalyst Sentinel 2.0+
- php 7.1.3+

Documentation
=============

[](#documentation)

The project documentation can be found in the repo's [GitHub pages](https://deltoss.github.io/sentinel-database-permissions/)

License
=======

[](#license)

MIT © Michael Tran

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

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

Unknown

Total

1

Last Release

2671d ago

### Community

Maintainers

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

---

Top Contributors

[![deltoss](https://avatars.githubusercontent.com/u/9282390?v=4)](https://github.com/deltoss "deltoss (32 commits)")[![sobolevna](https://avatars.githubusercontent.com/u/12809454?v=4)](https://github.com/sobolevna "sobolevna (6 commits)")

---

Tags

authenticationlaravelphpsentinellaravelauthsentinel

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/deltoss-sentinel-database-permissions/health.svg)

```
[![Health](https://phpackages.com/badges/deltoss-sentinel-database-permissions/health.svg)](https://phpackages.com/packages/deltoss-sentinel-database-permissions)
```

###  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)[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)[srlabs/centaur

An opinionated implementation of Cartalyst's Sentinel for Laravel 5

6058.0k](/packages/srlabs-centaur)[pallant/laravel-aws-cognito-auth

An authentication driver for Laravel for authenticating users in AWS Cognito User Pools

777.7k](/packages/pallant-laravel-aws-cognito-auth)

PHPackages © 2026

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