PHPackages                             thoughtco/statamic-restrict-fields - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. thoughtco/statamic-restrict-fields

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

thoughtco/statamic-restrict-fields
==================================

1.1.0(2y ago)634.7k↓60%1JavaScript

Since Oct 13Pushed 2y ago3 watchersCompare

[ Source](https://github.com/thoughtco/statamic-restrict-fields)[ Packagist](https://packagist.org/packages/thoughtco/statamic-restrict-fields)[ RSS](/packages/thoughtco-statamic-restrict-fields/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (4)DependenciesVersions (5)Used By (0)

Restrict Fields
===============

[](#restrict-fields)

> Restrict Fields is a Statamic addon that allows you to restrict fields in the control panel to certain users, groups or roles.

How to Install
--------------

[](#how-to-install)

Run the following command from your project root:

```
composer require thoughtco/statamic-restrict-fields
```

How to Use
----------

[](#how-to-use)

Once installed, 3 new custom condition methods become available to use:

### restrictUsers

[](#restrictusers)

Use with a value in the format: `restrictUsers:user_id_1,user_id_2`

### restrictGroups

[](#restrictgroups)

Use with a value in the format: `restrictGroups:group_slug_1,group_slug_2`

### restrictRoles

[](#restrictroles)

Use with a value in the format: `restrictRoles:role_slug_1,role_slug_2`

### Including superadmins

[](#including-superadmins)

You may pass `super` to the `restrictGroups` and `restrictRoles` condition methods in order to include superadmins.

Example: `restrictGroups:super,group_slug_1,group_slug_2`

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 60% 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 ~253 days

Total

4

Last Release

963d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/51899?v=4)[Ryan Mitchell](/maintainers/ryanmitchell)[@ryanmitchell](https://github.com/ryanmitchell)

---

Top Contributors

[![ryanmitchell](https://avatars.githubusercontent.com/u/51899?v=4)](https://github.com/ryanmitchell "ryanmitchell (6 commits)")[![wiegertschouten](https://avatars.githubusercontent.com/u/33861354?v=4)](https://github.com/wiegertschouten "wiegertschouten (2 commits)")[![duncanmcclean](https://avatars.githubusercontent.com/u/19637309?v=4)](https://github.com/duncanmcclean "duncanmcclean (1 commits)")[![skylennard](https://avatars.githubusercontent.com/u/27147?v=4)](https://github.com/skylennard "skylennard (1 commits)")

### Embed Badge

![Health badge](/badges/thoughtco-statamic-restrict-fields/health.svg)

```
[![Health](https://phpackages.com/badges/thoughtco-statamic-restrict-fields/health.svg)](https://phpackages.com/packages/thoughtco-statamic-restrict-fields)
```

###  Alternatives

[mdwheele/swotphp

Identify email addresses or domains names that belong to colleges or universities.

6849.1k1](/packages/mdwheele-swotphp)

PHPackages © 2026

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