PHPackages                             mwstake/mediawiki-component-lockdown - 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. mwstake/mediawiki-component-lockdown

ActiveLibrary[Security](/categories/security)

mwstake/mediawiki-component-lockdown
====================================

Provides classes and services to lockdown pages

1.0.1(3y ago)015GPL-3.0-onlyPHPCI passing

Since Jan 10Pushed 5mo ago6 watchersCompare

[ Source](https://github.com/hallowelt/mwstake-mediawiki-component-lockdown)[ Packagist](https://packagist.org/packages/mwstake/mediawiki-component-lockdown)[ RSS](/packages/mwstake-mediawiki-component-lockdown/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (6)Versions (4)Used By (0)

MediaWiki Stakeholders Group - Components
-----------------------------------------

[](#mediawiki-stakeholders-group---components)

Lockdown for MediaWiki
======================

[](#lockdown-for-mediawiki)

Provides a service and classes for permission lockdown on single pages

**This code is meant to be executed within the MediaWiki application context. No standalone usage is intended.**

Use in a MediaWiki extension
----------------------------

[](#use-in-a-mediawiki-extension)

Add `"mwstake/mediawiki-component-lockdown": "~1.0"` to the `require` section of your `composer.json` file.

Explicit initialization is required. This can be archived by

- either adding `"callback": "mwsInitComponents"` to your `extension.json`/`skin.json`
- or calling `mwsInitComponents();` within you extensions/skins custom `callback` method

See also [`mwstake/mediawiki-componentloader`](https://github.com/hallowelt/mwstake-mediawiki-componentloader).

### Implement a module

[](#implement-a-module)

Create a class that implements `MWStake\MediaWiki\Component\Lockdown\IModule`. For convenience you may want to derive directly from the abstract base class `MWStake\MediaWiki\Component\Lockdown\Module`.

### Register a module

[](#register-a-module)

[ObjectFactory specification](https://www.mediawiki.org/wiki/ObjectFactory) should be provided.

*Example 1:*

```
$GLOBALS['mwsgLockdownRegistry']['mymodulename'] = [
    'class' => "\\MediaWiki\Extension\\MyExt\\Lockdown\\LockThisDown",
    'services' => [ 'MainConfig', 'MyOtherService' ]
];
```

*Example 2: (legacy)*This provides the following services

```
$GLOBALS['mwsgLockdownRegistry']['mymodulename'][] = "\\MediaWiki\Extension\\MyExt\\Lockdown\\LockThisDown::myCallback"
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance49

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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 ~329 days

Total

2

Last Release

1208d ago

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/161c38b5448b71865cf0652b6974ed489dd3683b5d6e1814973cea6cb66c8f1d?d=identicon)[dsavuljesku](/maintainers/dsavuljesku)

---

Top Contributors

[![HamishSlater](https://avatars.githubusercontent.com/u/26261210?v=4)](https://github.com/HamishSlater "HamishSlater (6 commits)")[![osnard](https://avatars.githubusercontent.com/u/1201528?v=4)](https://github.com/osnard "osnard (3 commits)")

### Embed Badge

![Health badge](/badges/mwstake-mediawiki-component-lockdown/health.svg)

```
[![Health](https://phpackages.com/badges/mwstake-mediawiki-component-lockdown/health.svg)](https://phpackages.com/packages/mwstake-mediawiki-component-lockdown)
```

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[roave/security-advisories

Prevents installation of composer packages with known security vulnerabilities: no API, simply require it

2.9k97.3M6.4k](/packages/roave-security-advisories)[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

41278.1M118](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

86917.5M63](/packages/bjeavons-zxcvbn-php)[enlightn/security-checker

A PHP dependency vulnerabilities scanner based on the Security Advisories Database.

33732.2M110](/packages/enlightn-security-checker)

PHPackages © 2026

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