PHPackages                             wieni/wmsettings - 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. wieni/wmsettings

ActiveDrupal-module

wieni/wmsettings
================

Provides an Editor UI and Developer API for managing custom settings

0.9.0(11mo ago)026.7k↓39.8%3[3 issues](https://github.com/wieni/wmsettings/issues)MITPHPPHP &gt;=7.1

Since Sep 30Pushed 3mo ago3 watchersCompare

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

READMEChangelog (10)Dependencies (3)Versions (40)Used By (0)

wmsettings
==========

[](#wmsettings)

[![Latest Stable Version](https://camo.githubusercontent.com/1c99d533b5feb6e30aa391acfb892d57c7d3bae70210caf8b62c1d99f06fcb36/68747470733a2f2f706f7365722e707567782e6f72672f7769656e692f776d73657474696e67732f762f737461626c65)](https://packagist.org/packages/wieni/wmsettings)[![Total Downloads](https://camo.githubusercontent.com/0692d8bdb47abcdb53ca1503d6c8a42e84b465a43e4535f89d89a9c5d9ccbec1/68747470733a2f2f706f7365722e707567782e6f72672f7769656e692f776d73657474696e67732f646f776e6c6f616473)](https://packagist.org/packages/wieni/wmsettings)[![License](https://camo.githubusercontent.com/608238fe475e5f95902415bcfb58eb63c74f03275849a987c66dc1f978ff481e/68747470733a2f2f706f7365722e707567782e6f72672f7769656e692f776d73657474696e67732f6c6963656e7365)](https://packagist.org/packages/wieni/wmsettings)

> Provides an Editor UI and Developer API for managing custom settings

Why?
----

[](#why)

Provides an Editor UI and Developers API for setting/getting content that needs to be all over the place but isn't exactly config, and isn't exactly entity stuff.

How does it work?
-----------------

[](#how-does-it-work)

Technically you create config keys (eg `global` or `site-settings`). This key gets linked directly to exactly one bundle in the `settings` entity type.

Developers are free to create bundles/fields in the entity type `settings` themselves, and create keys to refer to them.

### Adding configs

[](#adding-configs)

On `/admin/config/wmsettings` one can add settings. A setting effectively links a machine name to a specific entity id. The entity gets autocreated.

You can also add configs by directly writing config files I suppose, for the brave that feel up to it. Just follow the wmsettings.schema.yml for that.

### Editor UI

[](#editor-ui)

The administrative interface for editors is at `admin/content/wmsettings`. Note that:

- The `administer wmsettings content` permission + edit permissions for the `settings` entity type will be required to edit the settings
- Editors should only be able to edit these autocreated entities. Do NOT provide direct access to creation/deletion of settings entitites.

### Developers API

[](#developers-api)

There are several ways to access the entity for a key.

#### 1. The service.

[](#1-the-service)

```
$entity = Drupal::service('wmsettings.settings')
    ->read('my_key');
```

#### 2. The module function.

[](#2-the-module-function)

```
wmsettings_get('my_key');
```

#### 3. The fill function.

[](#3-the-fill-function)

Returns a quick flattened array of all values in a setting, given field names and field types. Not a lot of field types are supported now.

```
$variables['copy'] = Drupal::service('wmsettings.settings')
    ->fill($global_copy, ['field_name' => 'textarea']);
```

### Adding Tabs (local tasks) to settings for your custom routes

[](#adding-tabs-local-tasks-to-settings-for-your-custom-routes)

Drupal requires at least two tasks to show them, so for the sake of completeness this example loads two tasks too:

```
wmcustom.home_controller_home.home:
    title: 'View'
    route_name: wmcustom.home_controller_home
    base_route: wmcustom.home_controller_home

wmcustom.home_controller_home.edit:
    title: 'Edit'
    route_name: wmsettings.settings.redirect
    route_parameters:
        key:  'homepage'
        anchor: 'edit-group-hero-image'
        destination: 'wmcustom.home_controller_home'
    base_route: wmcustom.home_controller_home
```

Changelog
---------

[](#changelog)

All notable changes to this project will be documented in the [CHANGELOG](CHANGELOG.md) file.

Security
--------

[](#security)

If you discover any security-related issues, please email  instead of using the issue tracker.

License
-------

[](#license)

Distributed under the MIT License. See the [LICENSE](LICENSE) file for more information.

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance68

Regular maintenance activity

Popularity29

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 61.2% 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 ~90 days

Recently: every ~362 days

Total

36

Last Release

350d ago

PHP version history (2 changes)0.3.2PHP &gt;=7.0.0

0.4.0PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/734199ae17f8da336fef9ba81f7c37cda09b0f9a952f551235c32ecfad68488b?d=identicon)[Wieni](/maintainers/Wieni)

---

Top Contributors

[![DieterHolvoet](https://avatars.githubusercontent.com/u/3606531?v=4)](https://github.com/DieterHolvoet "DieterHolvoet (41 commits)")[![spoit](https://avatars.githubusercontent.com/u/359811?v=4)](https://github.com/spoit "spoit (13 commits)")[![RobinHoutevelts](https://avatars.githubusercontent.com/u/9056689?v=4)](https://github.com/RobinHoutevelts "RobinHoutevelts (6 commits)")[![akasake](https://avatars.githubusercontent.com/u/32063989?v=4)](https://github.com/akasake "akasake (3 commits)")[![brownrl](https://avatars.githubusercontent.com/u/87302314?v=4)](https://github.com/brownrl "brownrl (3 commits)")[![frizinak](https://avatars.githubusercontent.com/u/823696?v=4)](https://github.com/frizinak "frizinak (1 commits)")

---

Tags

drupal-8drupal-moduledrupal8-modulesettings

### Embed Badge

![Health badge](/badges/wieni-wmsettings/health.svg)

```
[![Health](https://phpackages.com/badges/wieni-wmsettings/health.svg)](https://phpackages.com/packages/wieni-wmsettings)
```

###  Alternatives

[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6939.5M343](/packages/drupal-core-recommended)

PHPackages © 2026

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