PHPackages                             sunlab/wn-permissions-plugin - 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. sunlab/wn-permissions-plugin

ActiveWinter-plugin[Authentication &amp; Authorization](/categories/authentication)

sunlab/wn-permissions-plugin
============================

Frontend User's permissions plugin for WinterCMS

v1.0.20(2y ago)387411MITPHPPHP &gt;=7.0

Since May 25Pushed 2y agoCompare

[ Source](https://github.com/SunLabDev/wn-permissions-plugin)[ Packagist](https://packagist.org/packages/sunlab/wn-permissions-plugin)[ Docs](https://github.com/sunlabdev/wn-permissions-plugin)[ RSS](/packages/sunlab-wn-permissions-plugin/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (4)Dependencies (2)Versions (5)Used By (1)

Permissions
-----------

[](#permissions)

Front-end user permissions management.

### Composer installation

[](#composer-installation)

```
composer require sunlab/wn-permissions-plugin

```

### Requirements

[](#requirements)

This plugin requires the [Winter.User](https://github.com/wintercms/wn-user-plugin) Plugin.

### Creating Permissions

[](#creating-permissions)

In the backend, navigate to Winter "Users" menu, on the left side there should be an open lock icon with the name "Permissions". Click this, and it will take you to the list of permission.

- Click "New Permission" to get to a form where you can enter information about a new permission you would like to create.
- Click on a permission in the list to manage existing permissions.

### Managing User Permissions

[](#managing-user-permissions)

In the backend, navigate to Winter "Users" menu, now on a User model updating page, you can manage his permission at his user-level.

### Managing Group Permissions

[](#managing-group-permissions)

In the backend, navigate to Winter "Users" menu, into the side menu, select `Groups`. Now on a `Group` model updating page, you can manage the permissions that will be granted for every `User` in that group.

### Using Permissions in your own development

[](#using-permissions-in-your-own-development)

Since every user model is now extended with the `hasUserPermission` method, it is available in both twig and backend php i.e.

**For Twig**

```
{% if user.hasUserPermission(['can-eat-cake', 'can-take-cheese']) %}
    This user has all above permissions
{% else %}
    This user does not have permission
{% endif %}

{% if user.hasUserPermission(['can-eat-cake', 'can-take-cheese'], 'one') %}
    This user has one of the above permissions
{% else %}
    This user does not have permission
{% endif %}
```

**For Backend**

```
if ($user->hasUserPermission(['can-eat-cake', 'can-take-cheese'])) {
    // This user has all above permissions
} else {
    // This user does not have permission
}

if ($user->hasUserPermission(['can-eat-cake', 'can-take-cheese'], 'one')) {
    // This user has one of the above permissions
} else {
    // This user does not have permission
}
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95% 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 ~330 days

Total

4

Last Release

873d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/13edfd2ca556efd1be6f0191a5b3a760ae4156257907b0138a3c3f9a8870354c?d=identicon)[RomainMazB](/maintainers/RomainMazB)

---

Top Contributors

[![RomainMazB](https://avatars.githubusercontent.com/u/53976837?v=4)](https://github.com/RomainMazB "RomainMazB (19 commits)")[![damsfx](https://avatars.githubusercontent.com/u/282242?v=4)](https://github.com/damsfx "damsfx (1 commits)")

---

Tags

pluginpermissionswinterwinter cms

### Embed Badge

![Health badge](/badges/sunlab-wn-permissions-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/sunlab-wn-permissions-plugin/health.svg)](https://phpackages.com/packages/sunlab-wn-permissions-plugin)
```

###  Alternatives

[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.5k10](/packages/helsingborg-stad-municipio)[winter/wn-user-plugin

User plugin for Winter CMS

1338.6k17](/packages/winter-wn-user-plugin)[dereuromark/cakephp-tinyauth

A CakePHP plugin to handle user authentication and authorization the easy way.

131240.2k13](/packages/dereuromark-cakephp-tinyauth)[winter/wn-blog-plugin

Blog plugin for Winter CMS

2046.4k3](/packages/winter-wn-blog-plugin)[winter/wn-pages-plugin

Pages plugin for Winter CMS

1459.8k3](/packages/winter-wn-pages-plugin)[winter/wn-sitemap-plugin

Sitemap plugin for Winter CMS

1049.0k1](/packages/winter-wn-sitemap-plugin)

PHPackages © 2026

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