PHPackages                             open-csp/w-s-spaces - 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. open-csp/w-s-spaces

ActiveMediawiki-extension

open-csp/w-s-spaces
===================

Dynamic namespace management system for MediaWiki.

2.2.1(3y ago)01.4k1[2 issues](https://github.com/Open-CSP/WSSpaces/issues)GPL-2.0-or-laterPHP

Since Nov 29Pushed 6mo ago2 watchersCompare

[ Source](https://github.com/Open-CSP/WSSpaces)[ Packagist](https://packagist.org/packages/open-csp/w-s-spaces)[ RSS](/packages/open-csp-w-s-spaces/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (5)Used By (0)

WSSpaces
========

[](#wsspaces)

WSSpaces is a comprehensive space management system developed for MediaWiki. It enables users to dynamically define namespaces. This document describes the extensions capabilities, options and usage.

Configuration
-------------

[](#configuration)

WSSpaces has two configuration variable.

- `$wgWSSpacesEnableSpaceArchiving` (boolean, default: true) Whether to allow archiving of spaces
- `$wgWSSpacesAutoAddAdminsToUserGroups` (boolean, default: false) Whether to automatically add space admins to a user group. Eg. An admin for a space with id 50000 will get added to a group called '50000Admin'. Will additionally add admins to a general 'SpaceAdmin' group that can be used to assign rights to all space admins.

To enable Semantic MediaWiki for the created namespace, place the following code in between the initialization of Semantic MediaWiki and WSSpaces in LocalSettings.php:

```
// NOTE: This is not very nice, and another solution is needed, but it suffices for now
for ($i = 50000; $i < 55000; $i++) {
	$smwgNamespacesWithSemanticLinks[$i] = true;
}

```

Parser functions
----------------

[](#parser-functions)

### Retrieving defined spaces

[](#retrieving-defined-spaces)

You can use the `{{#spaces:}}` parser function to get a comma-separated list of spaces defined by WSSpaces.

### Retrieving data for a space

[](#retrieving-data-for-a-space)

You can use the `{{#spaceadmins:{{NAMESPACENUMBER}}}}` and `{{#spacedescription:{{NAMESPACENUMBER}}}}` and `{{#spacename:{{NAMESPACENUMBER}}}}` parser functions to get the list of admin names, description of the space, and long name of the space with Wikitext.

Hooks
-----

[](#hooks)

WSSpaces defines several hooks to alter or extend its behaviour.

### `WSSpacesAfterCreateSpace`

[](#wsspacesaftercreatespace)

```
public static function onWSSpacesAfterCreateSpace( \WSS\Space $space ) {}
```

Gets called once directly after a space has been created. NOTE: The space has not been initialized with the Wiki at this point. Therefore, you cannot create a page in this namespace (use a job instead). Similarly, this space is at this point unaware of the admins that it has as they are only set after this hook is called.

### `WSSpacesCustomApiExceptionHandler`

[](#wsspacescustomapiexceptionhandler)

```
public static function onWSSpacesCustomApiExceptionHandler( \ApiUsageException $exception ) {}
```

Gets called whenever an ApiUsageException occurs when using the WSSpaces API. Allows for custom handling of the exception.

Rights
------

[](#rights)

WSSpaces defines several rights.

> Please note that administrators of a space are always able to edit the details of that space, regardless of whether or not they have been assigned any of the rights below. However, admins do not get the wss-edit-protected right by default, so they cannot edit "pages" in protected spaces.

### `wss-edit-all-spaces`

[](#wss-edit-all-spaces)

Whether the user can edit all spaces or not, regardless of whether or not they are a space administrator of those spaces.

### `wss-add-space`

[](#wss-add-space)

Whether the user can add new spaces to the wiki or not.

### `wss-archive-space`

[](#wss-archive-space)

Whether the user can archive existing spaces or not. This right does not affect the behaviour or `$wgWSSpacesEnableSpaceArchiving`.

### `wss-view-space-admins`

[](#wss-view-space-admins)

Whether the user is able to view the admins for a space or not.

### `wss-view-spaces-overview`

[](#wss-view-spaces-overview)

Whether the user is able to view the overview of spaces or not.

### `wss-edit-protected`

[](#wss-edit-protected)

Whether the user is able to edit pages in "protected" spaces.

API modules
-----------

[](#api-modules)

WSSpaces defines several API modules. The documentation of these API modules can be found through the API sandbox or by going to `/api.php` on the wiki. For your reference, the following API modules are available:

- `addspace`
- `archivespace`
- `unarchivespace`
- `editspace`

Furthermore, the following API list (`?action=query`) modules are available:

- `spaces`
- `spaceadmins`
- `singlespace`

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance47

Moderate activity, may be stable

Popularity19

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 53.8% 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 ~180 days

Total

3

Last Release

1271d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5d85f137453ecb54df149f98574746640c79d7f8532b7af7e237107723cd0947?d=identicon)[xxmarijnw](/maintainers/xxmarijnw)

---

Top Contributors

[![marijnvanwezel](https://avatars.githubusercontent.com/u/96489967?v=4)](https://github.com/marijnvanwezel "marijnvanwezel (63 commits)")[![CmdrRob](https://avatars.githubusercontent.com/u/56593048?v=4)](https://github.com/CmdrRob "CmdrRob (45 commits)")[![Designburo](https://avatars.githubusercontent.com/u/7594925?v=4)](https://github.com/Designburo "Designburo (9 commits)")

### Embed Badge

![Health badge](/badges/open-csp-w-s-spaces/health.svg)

```
[![Health](https://phpackages.com/badges/open-csp-w-s-spaces/health.svg)](https://phpackages.com/packages/open-csp-w-s-spaces)
```

PHPackages © 2026

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