PHPackages                             tv2regionerne/statamic-safeguard - 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. tv2regionerne/statamic-safeguard

ActiveLibrary

tv2regionerne/statamic-safeguard
================================

v2.0.0(11mo ago)013.1k↓35.7%PHP

Since Jan 12Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/tv2regionerne/statamic-safeguard)[ Packagist](https://packagist.org/packages/tv2regionerne/statamic-safeguard)[ RSS](/packages/tv2regionerne-statamic-safeguard/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (1)Versions (7)Used By (0)

Statamic SafeGuard
==================

[](#statamic-safeguard)

> Statamic SafeGuard is an essential add-on for horizontally scaled Statamic CMS,
> designed to enhance production environment stability by restricting write operations
> and managing user permissions to prevent unintended changes.

Features
--------

[](#features)

Add's SafeGuard prevents configured permissions to be assigned for selected environments.
The super role is also removed for all users, except for those in the whitelist.

Important

The addon requires users to be stored in Eloquent.

The addon can also be used to prevent end customers to grant them self administrative permissions even with full permissions to e.g. roles.

The addon have the ability to set read only permissions to the files.
Please notice that this feature is experimental and should only be performed in relation to a deployment og CI build.

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

[](#how-to-install)

Run the following command from your project root:

```
composer require tv2regionerne/statamic-safeguard
```

Publish the config

```
php artisan vendor:publish --tag statamic-safeguard-config
```

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

[](#how-to-use)

Update the config `config/statamic-safeguard.php`.
The safeGuard is already preconfigured for production and staging environment.
The config already have a preconfigured set of permission to remove in those environments.
If you need super access, even if you are in a restricted environment, add your e-mail to super array in the config.

Caution

Experimental!
Run the command `php artisan safeguard:disk` to update the filesystem to readonly. Please read and update the config. Make sure to backup your files before experimenting with this feature.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance50

Moderate activity, may be stable

Popularity24

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~101 days

Recently: every ~114 days

Total

6

Last Release

350d ago

Major Versions

v1.4.0 → v2.0.02025-06-03

### Community

Maintainers

![](https://www.gravatar.com/avatar/b9761a79e61f2d5b9d650510dfb3555da18daf38f027aa84012c937e397e39a7?d=identicon)[cboxdk](/maintainers/cboxdk)

---

Top Contributors

[![peterbrinck](https://avatars.githubusercontent.com/u/6154068?v=4)](https://github.com/peterbrinck "peterbrinck (1 commits)")

### Embed Badge

![Health badge](/badges/tv2regionerne-statamic-safeguard/health.svg)

```
[![Health](https://phpackages.com/badges/tv2regionerne-statamic-safeguard/health.svg)](https://phpackages.com/packages/tv2regionerne-statamic-safeguard)
```

###  Alternatives

[statamic/statamic

Statamic

824170.4k](/packages/statamic-statamic)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135192.6k5](/packages/statamic-rad-pack-runway)[statamic/ssg

Generate static sites with Statamic.

254302.4k](/packages/statamic-ssg)[statamic/eloquent-driver

Allows you to store Statamic data in a database.

125598.8k7](/packages/statamic-eloquent-driver)[statamic/seo-pro

65440.7k](/packages/statamic-seo-pro)[rias/statamic-redirect

28298.4k](/packages/rias-statamic-redirect)

PHPackages © 2026

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