PHPackages                             sawirricardo/laravel-gate-helper - 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. sawirricardo/laravel-gate-helper

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

sawirricardo/laravel-gate-helper
================================

This is my package laravel-gate-helper

0.0.2(3y ago)22[3 PRs](https://github.com/sawirricardo/laravel-gate-helper/pulls)MITPHPPHP ^7.3 | ^8.0 | ^8.1

Since Jul 1Pushed 2y ago1 watchersCompare

[ Source](https://github.com/sawirricardo/laravel-gate-helper)[ Packagist](https://packagist.org/packages/sawirricardo/laravel-gate-helper)[ Docs](https://github.com/sawirricardo/laravel-gate-helper)[ RSS](/packages/sawirricardo-laravel-gate-helper/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (13)Versions (6)Used By (0)

[![](https://camo.githubusercontent.com/2bedf63f24cda7efab02da955dc11fb7ef8a060e2f26b73c33a7aac84529b8a3/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f737570706f72742d756b7261696e652e7376673f743d31)](https://supportukrainenow.org)

This is my package laravel-gate-helper
======================================

[](#this-is-my-package-laravel-gate-helper)

[![Latest Version on Packagist](https://camo.githubusercontent.com/dc30297fbe090a501636c618399b48186b989553f3867debe5284fe16016b46b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73617769727269636172646f2f6c61726176656c2d676174652d68656c7065722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sawirricardo/laravel-gate-helper)[![GitHub Tests Action Status](https://camo.githubusercontent.com/8c46c04dd6bc0ae9c96a2d621a378f3297d47a70a2043f01af2b1b25e9ffb5df/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f73617769727269636172646f2f6c61726176656c2d676174652d68656c7065722f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/sawirricardo/laravel-gate-helper/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/ad462fa38e08270c5736a0622dded56bb46e8a8f5f8f72f92f3c8b9a2a073c29/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f73617769727269636172646f2f6c61726176656c2d676174652d68656c7065722f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/sawirricardo/laravel-gate-helper/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/1907733791c215cff9749586a77590da9f7915f94eff468c1350dba2c8390f02/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73617769727269636172646f2f6c61726176656c2d676174652d68656c7065722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sawirricardo/laravel-gate-helper)

Simply use `gate('my-ability')`

Support us
----------

[](#support-us)

[![](https://camo.githubusercontent.com/de8d8b22a85fb7f2e39eb003bba9e87bfda5072f12cf2ff94ad38cec60120314/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f6c61726176656c2d676174652d68656c7065722e6a70673f743d31)](https://spatie.be/github-ad-click/laravel-gate-helper)

We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).

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

[](#installation)

You can install the package via composer:

```
composer require sawirricardo/laravel-gate-helper
```

Usage
-----

[](#usage)

```
$response = gate('ability-name', ['argument-1', 'argument 2']);
$response->allowed();
$response->denied();
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [sawirricardo](https://github.com/sawirricardo)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

1412d ago

PHP version history (2 changes)0.0.1PHP ^8.1

0.0.2PHP ^7.3 | ^8.0 | ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/23599e5bcea6210e7c2aa6ab912ab4dc501ca63911cc8a99c46a7b4f57a658ad?d=identicon)[ricardosawir](/maintainers/ricardosawir)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (7 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (7 commits)")[![sawirricardo](https://avatars.githubusercontent.com/u/37329575?v=4)](https://github.com/sawirricardo "sawirricardo (6 commits)")

---

Tags

laravelsawirricardolaravel-gate-helper

###  Code Quality

TestsPest

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/sawirricardo-laravel-gate-helper/health.svg)

```
[![Health](https://phpackages.com/badges/sawirricardo-laravel-gate-helper/health.svg)](https://phpackages.com/packages/sawirricardo-laravel-gate-helper)
```

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k89.8M1.0k](/packages/spatie-laravel-permission)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[jeffgreco13/filament-breezy

A custom package for Filament with login flow, profile and teams support.

1.0k1.7M41](/packages/jeffgreco13-filament-breezy)[spatie/laravel-login-link

Quickly login to your local environment

4381.2M1](/packages/spatie-laravel-login-link)[ryangjchandler/laravel-cloudflare-turnstile

A simple package to help integrate Cloudflare Turnstile.

438896.6k2](/packages/ryangjchandler-laravel-cloudflare-turnstile)[spatie/laravel-passkeys

Use passkeys in your Laravel app

444494.4k16](/packages/spatie-laravel-passkeys)

PHPackages © 2026

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