PHPackages                             omniguard/omniguard - 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. omniguard/omniguard

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

omniguard/omniguard
===================

A simple and friendly helper for managing roles and permissions in Laravel applications. Lightweight, easy to setup, and optimized for shared hosting.

v1.0.0-alpha(1mo ago)00MITPHPPHP ^8.2CI passing

Since Apr 21Pushed 1mo agoCompare

[ Source](https://github.com/ahtesham-clcbws/omni_guard)[ Packagist](https://packagist.org/packages/omniguard/omniguard)[ RSS](/packages/omniguard-omniguard/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (6)Versions (2)Used By (0)

🛡️ OmniGuard
============

[](#️-omniguard)

**A simple, helpful authorization manager for Laravel (11/12/13).**

OmniGuard is a tool designed to help you manage roles and permissions in your Laravel applications without adding too much complexity. It focuses on being lightweight, easy to understand, and efficient enough to run on any hosting environment.

---

👋 How it helps you
------------------

[](#-how-it-helps-you)

OmniGuard is built to be a "helping hand" for developers:

- **Easy Setup**: Get up and running in minutes with a simple installation command.
- **Auto-Discovery**: It can automatically look at your code and suggest permissions for you, saving you from manual entry.
- **Fast Performance**: Uses a simple bitmasking system to keep your application snappy even if you have many permissions.
- **Shared Hosting Friendly**: Designed to use very little memory, so it works perfectly on budget hosting.
- **Safe Modes**: Includes "Panic Mode" to quickly lock down your site and "Ghost Mode" to test changes safely.

---

📦 Getting Started
-----------------

[](#-getting-started)

To add OmniGuard to your project:

```
composer require omniguard/omniguard
php artisan omniguard:install
php artisan migrate
```

Then, just add the `HasOmniGuard` trait to your User model:

```
use OmniGuard\Traits\HasOmniGuard;

class User extends Authenticatable
{
    use HasOmniGuard;
}
```

---

🛠️ Common Usage
---------------

[](#️-common-usage)

### In your Blade views

[](#in-your-blade-views)

Use the simple `@omniguard` directive to show or hide parts of your UI:

```
@omniguard('edit.posts')
    Edit Post
@else
    View only
@endomniguard
```

### In your code

[](#in-your-code)

Registering your controllers for auto-discovery is easy:

```
#[OmniResource(group: 'Blog')]
class PostController extends Controller
{
    // OmniGuard will help manage your permissions here
}
```

---

📖 Learn More
------------

[](#-learn-more)

We have prepared easy-to-follow guides in the **[docs/](docs/v1/index.md)** folder to help you with everything from installation to multi-tenancy.

---

💎 Credits &amp; Support
-----------------------

[](#-credits--support)

This project is maintained with care by **[Ahtesham](https://github.com/ahtesham-clcbws)** and **[Broadway Web Services](https://www.clcbws.com)**. We are always happy to help if you have questions or need assistance.

- **WhatsApp**: [+91 9810763314](https://wa.me/919810763314)
- **Email**:

---

📄 License
---------

[](#-license)

OmniGuard is proprietary software from Broadway Web Services. You are welcome to use it exactly as provided under our standard license terms.

###  Health Score

33

—

LowBetter than 73% of packages

Maintenance90

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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

49d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/84698f6453dd3f11b991c5babf3ca1a84884aed24fafd9368be7e260de3c6791?d=identicon)[ahtesham-clcbws](/maintainers/ahtesham-clcbws)

---

Top Contributors

[![ahtesham-clcbws](https://avatars.githubusercontent.com/u/17913874?v=4)](https://github.com/ahtesham-clcbws "ahtesham-clcbws (30 commits)")

---

Tags

authorizationbitmaskingheuristic-discoverylaravellaravel-permissionmulti-tenancyphplaravelsecurityauthorizationpermissionsrbacmultitenancyhigh-performanceorchestratorzero-dependencybitmaskingsovereign-codeheuristic-discovery

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k98.0M1.3k](/packages/spatie-laravel-permission)[hasinhayder/tyro

Tyro - The ultimate Authentication, Authorization, and Role &amp; Privilege Management solution for Laravel 12 &amp; 13

6753.6k5](/packages/hasinhayder-tyro)[psalm/plugin-laravel

Psalm plugin for Laravel

3325.1M337](/packages/psalm-plugin-laravel)[alajusticia/laravel-logins

Session management in Laravel apps, user notifications on new access, support for multiple separate remember tokens, IP geolocation, User-Agent parser

2013.2k](/packages/alajusticia-laravel-logins)[wnikk/laravel-access-rules

Simple system of ACR (access control rules) for Laravel, with roles, groups, unlimited inheritance and possibility of multiplayer use.

103.7k1](/packages/wnikk-laravel-access-rules)

PHPackages © 2026

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