PHPackages                             andrekelling/kirby-force-login - 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. andrekelling/kirby-force-login

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

andrekelling/kirby-force-login
==============================

Force Login

1.1.0(2mo ago)51821MITPHP

Since Oct 15Pushed 2mo agoCompare

[ Source](https://github.com/AndreKelling/kirby-force-login)[ Packagist](https://packagist.org/packages/andrekelling/kirby-force-login)[ RSS](/packages/andrekelling-kirby-force-login/feed)WikiDiscussions main Synced 1w ago

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

Force Login
===========

[](#force-login)

A plugin for [Kirby CMS](https://getkirby.com/docs/reference).

- forces all users to login on non-panel pages
- redirects back to blocked page via urlParam after login

Especially useful for staging websites.

Inspired by [WordPress plugin - Force Login](https://de.wordpress.org/plugins/wp-force-login/)

Requirements
------------

[](#requirements)

- Kirby 5.1+ (just tested with 5.1 probably works on previous versions too)

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

[](#installation)

### Download

[](#download)

Download and copy this repository to `/site/plugins/kirby-force-login`.

### Composer

[](#composer)

```
composer require andrekelling/kirby-force-login

```

Usage
-----

[](#usage)

`andrekelling.force-login.is-active` supports `bool` and `callable` values in your config (for example in `site/config/config.php`).

### Bool example

[](#bool-example)

```
return [
    'andrekelling.force-login' => [
        'is-active' => true,
    ],
];
```

### Callable example

[](#callable-example)

The callable should return `true` or `false` depending on your runtime checks.

```
return [
    'andrekelling.force-login' => [
        'is-active' => function (): bool {
            if (!defined('SOMETHING') || SOMETHING !== true) return false;
            $path = (string) kirby()->request()->path();
            if (in_array($path, ['somepath', 'other/path', 'whatever/path.html'], true)) return false;
            return true;
        },
    ],
];
```

License
-------

[](#license)

[MIT License](./LICENSE)Copyright © 2025 André Kelling

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance88

Actively maintained with recent releases

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 69.6% 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 ~123 days

Total

3

Last Release

60d ago

Major Versions

0.0.1 → 1.0.02025-10-17

### Community

Maintainers

![](https://www.gravatar.com/avatar/1f82d42efd025c09fee843b0e08f68c4b647697fd3eb80f43081b2672642dc42?d=identicon)[andrekelling](/maintainers/andrekelling)

---

Top Contributors

[![AndreKelling](https://avatars.githubusercontent.com/u/15000189?v=4)](https://github.com/AndreKelling "AndreKelling (16 commits)")[![sigtrygg-space](https://avatars.githubusercontent.com/u/531677?v=4)](https://github.com/sigtrygg-space "sigtrygg-space (4 commits)")[![Copilot](https://avatars.githubusercontent.com/in/1143301?v=4)](https://github.com/Copilot "Copilot (3 commits)")

---

Tags

kirby-cmskirby-plugin

### Embed Badge

![Health badge](/badges/andrekelling-kirby-force-login/health.svg)

```
[![Health](https://phpackages.com/badges/andrekelling-kirby-force-login/health.svg)](https://phpackages.com/packages/andrekelling-kirby-force-login)
```

###  Alternatives

[getkirby/cms

The Kirby core

1.5k606.6k541](/packages/getkirby-cms)[medienbaecker/kirby-modules

Easily add modules to your pages

895.6k1](/packages/medienbaecker-kirby-modules)[thathoff/kirby-oauth

Kirby OAuth 2 Plugin

3927.4k](/packages/thathoff-kirby-oauth)[johannschopplich/kirby-content-translator

DeepL &amp; AI-powered content translation for Kirby CMS

2011.4k](/packages/johannschopplich-kirby-content-translator)[sylvainjule/bouncer

Restrict access of a user role to a specific page (and its children) in the panel.

684.0k](/packages/sylvainjule-bouncer)[tobimori/kirby-dreamform

Kirby DreamForm is an opiniated form builder plugin for Kirby CMS 4+ that makes forms work like magic

6012.6k1](/packages/tobimori-kirby-dreamform)

PHPackages © 2026

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