PHPackages                             n0nag0n/fatfree-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. n0nag0n/fatfree-permissions

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

n0nag0n/fatfree-permissions
===========================

A permissions module for your Fat-Free app to help with custom permissions.

v0.1.2(1y ago)2211MITPHP

Since Sep 7Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/n0nag0n/fatfree-permissions)[ Packagist](https://packagist.org/packages/n0nag0n/fatfree-permissions)[ RSS](/packages/n0nag0n-fatfree-permissions/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

Fat-Free Permissions
--------------------

[](#fat-free-permissions)

This is a permissions module that can be used in your projects if you have multiple roles in your app and each role has a little bit different functionality. This module allows you to define permissions for each role and then check if the current user has the permission to access a certain page or perform a certain action. This module is designed to be used with the [Fat-Free Framework](https://fatfreeframework.com). It is not a standalone module. This module pairs very nicely with [xfra35/f3-access](https://github.com/xfra35/f3-access)

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

[](#installation)

Run `composer require n0nag0n/fatfree-permissions` and you're on your way!

Configuration
-------------

[](#configuration)

There is very little configuration you need to do to get this started. It actually is wired up to accept configs, but it's not actually used at the moment.

Usage
-----

[](#usage)

First you need to setup your permissions, then you tell the your app what the permissions mean. Ultimately you will check your permissions with `$Permissions->has()`, `->can()`, or `is()`. They all have the same functionality, but are named differently to make your code more readable.

### Simple Usage

[](#simple-usage)

```
