PHPackages                             foowie/permission-checker - 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. [Security](/categories/security)
4. /
5. foowie/permission-checker

ActiveLibrary[Security](/categories/security)

foowie/permission-checker
=========================

Access permission check &amp; latte macros

0.5.3(2y ago)217.6k2BSD-3-ClausePHPPHP &gt;=7.2

Since Jul 15Pushed 2y ago2 watchersCompare

[ Source](https://github.com/foowie/PermissionChecker)[ Packagist](https://packagist.org/packages/foowie/permission-checker)[ RSS](/packages/foowie-permission-checker/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (5)Versions (13)Used By (0)

Foowie\\PermissionChecker
=========================

[](#foowiepermissionchecker)

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

[](#installation)

Include extension in config.neon

```
extensions:
	permission: Foowie\PermissionChecker\DI\PermissionExtension

```

and use PresenterPermissionTrait in your base presenter.

Usage
-----

[](#usage)

You can annotate presenter class, action and render methods and signal methods with these annotations:

```
@loggedIn - logged user is required
@loggedIn(false) - unlogged user is required
@role(superadmin, admin) - user must have role admin or superadmin
@resource(administration) - user must be assigned to administration resource

```

In template files is allowed to user these macros:

```
{ifAllowed 'administration'}{/ifAllowed} - user must be assigned to administration resource
{ifAllowedLink ':Administration:Dashboard:'}{/ifAllowed} - user must be allowed to display that page
 - user must be allowed to display that page, shorter alternative is "allowedHref"

```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

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

Every ~334 days

Recently: every ~43 days

Total

12

Last Release

1020d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6a28d61557f073f3c6aa607ad25d233635384c42a9596fb8368f3dcaf729657c?d=identicon)[Foowie](/maintainers/Foowie)

---

Top Contributors

[![davefu](https://avatars.githubusercontent.com/u/2168632?v=4)](https://github.com/davefu "davefu (10 commits)")[![foowie](https://avatars.githubusercontent.com/u/301159?v=4)](https://github.com/foowie "foowie (7 commits)")

---

Tags

nettesecuritypermission

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/foowie-permission-checker/health.svg)

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

###  Alternatives

[phpseclib/phpseclib

PHP Secure Communications Library - Pure-PHP implementations of RSA, AES, SSH2, SFTP, X.509 etc.

5.6k434.8M1.3k](/packages/phpseclib-phpseclib)[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k16.7M113](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41478.1M118](/packages/robrichards-xmlseclibs)[spatie/laravel-csp

Add CSP headers to the responses of a Laravel app

8569.6M19](/packages/spatie-laravel-csp)[nepada/security-annotations

Security annotations for Nette presenters and components.

1113.3k1](/packages/nepada-security-annotations)

PHPackages © 2026

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