PHPackages                             delgont/armor - 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. delgont/armor

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

delgont/armor
=============

Armor is a high‑performance Laravel package for managing user roles and permissions. It provides a flexible, cache‑friendly system to define, assign, and enforce permissions across your application, making route and action protection seamless and efficient.

v1.10.0(yesterday)053MITPHPPHP ^7.2.5 || ^8.0

Since Oct 8Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/delgont/armor)[ Packagist](https://packagist.org/packages/delgont/armor)[ Docs](https://github.com/delgont/armor)[ RSS](/packages/delgont-armor/feed)WikiDiscussions main Synced today

READMEChangelog (8)Dependencies (16)Versions (23)Used By (0)

[![Delgont Armor Banner](https://raw.githubusercontent.com/delgont/armor/main/banner.jpg)](https://raw.githubusercontent.com/delgont/armor/main/banner.jpg)

Armor – Laravel Role &amp; Permission Package
---------------------------------------------

[](#armor--laravel-role--permission-package)

**Armor** is a powerful, flexible, and cache-friendly permission and role management package for Laravel applications. Designed with performance in mind, Armor allows you to define roles and permissions, assign them to users, and protect routes or actions effortlessly.

🔒 Built for speed
⚙️ Highly customizable
📦 Supports permission groups, caching, syncing, and more

---

#### Installation

[](#installation)

```
composer require delgont:armor

php artisan migrate
```

---

#### Restrict Access Using Permissions

[](#restrict-access-using-permissions)

1. Create Permission Registrar and Define the permissions.

```
php artisan make:permissionRegistrar ExpensePermissionRegistrar
```

```
