PHPackages                             rockschtar/wordpress-settings - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. rockschtar/wordpress-settings

ActiveWordpress-muplugin[Utility &amp; Helpers](/categories/utility)

rockschtar/wordpress-settings
=============================

WordPress Settings Utility/Helper for usage with roots/bedrock (mu-plugin)

1.1.1(1mo ago)012.9k[1 PRs](https://github.com/rockschtar/wordpress-settings/pulls)MITPHPPHP &gt;=8.3CI failing

Since Dec 3Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/rockschtar/wordpress-settings)[ Packagist](https://packagist.org/packages/rockschtar/wordpress-settings)[ RSS](/packages/rockschtar-wordpress-settings/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (4)Versions (61)Used By (0)

WordPress Settings Wrapper
==========================

[](#wordpress-settings-wrapper)

> Fluent PHP 8.3 library for the WordPress Settings API — build settings pages without boilerplate.

[![Packagist](https://camo.githubusercontent.com/9cc06eeca3a068581ecffb88a6a3aeae1069a9fb56c4727966a5241dedd70297/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f726f636b7363687461722f776f726470726573732d73657474696e6773)](https://packagist.org/packages/rockschtar/wordpress-settings)[![PHP](https://camo.githubusercontent.com/91c19765df18332e71207663dbcd2c6a4b62ff346348360bb96c3beb9e18154b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f726f636b7363687461722f776f726470726573732d73657474696e67732f706870)](https://packagist.org/packages/rockschtar/wordpress-settings)[![License](https://camo.githubusercontent.com/14c528bfbf86fe89336bec693728658c662d9c998edde4f25d7d6058d68f5407/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f726f636b7363687461722f776f726470726573732d73657474696e6773)](LICENSE)

**[Full documentation →](https://rockschtar.github.io/wordpress-settings/)**

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

[](#requirements)

- PHP 8.3+
- WordPress 6.0+

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

[](#installation)

```
composer require rockschtar/wordpress-settings
```

Quick Start
-----------

[](#quick-start)

```
use Rockschtar\WordPress\Settings\Fields\InputText;
use Rockschtar\WordPress\Settings\Fields\SelectBox;
use Rockschtar\WordPress\Settings\Models\ListItem;
use Rockschtar\WordPress\Settings\Models\Section;
use Rockschtar\WordPress\Settings\Models\SettingsPage;

add_action('rswp_create_settings', function (): void {
    $page = SettingsPage::create('my-plugin-settings')
        ->setPageTitle('My Plugin')
        ->setMenuTitle('My Plugin')
        ->setCapability('manage_options');

    $section = Section::create('my-plugin-general', $page)
        ->setTitle('General');

    InputText::create('my_plugin_api_key')
        ->setLabel('API Key')
        ->setDescription('Your API key.')
        ->setPlaceholder('sk-...')
        ->addToSection($section);

    SelectBox::create('my_plugin_environment')
        ->setLabel('Environment')
        ->addItem(ListItem::create('production', 'Production'))
        ->addItem(ListItem::create('staging', 'Staging'))
        ->addItem(ListItem::create('development', 'Development'))
        ->addToSection($section);

    rswp_register_settings_page($page);
});
```

Field Types
-----------

[](#field-types)

FieldDescription`InputText`Text, email, password, color, date`InputNumber`Numeric input with min/max/step`InputPhone`Tel input with pattern validation`InputUrl`URL input`Textarea`Multi-line text`WYSIWYG`TinyMCE rich-text editor`CheckBox`Single checkbox`CheckBoxList`Multiple checkboxes`Radio`Radio button group`SelectBox`Dropdown — single or multi-select`UploadFile`File upload to uploads directory`UploadMedia`WordPress media library picker`Custom`Fully custom HTML via callback`AjaxButton`AJAX-triggered server actionSee the **[full field reference](https://rockschtar.github.io/wordpress-settings/#/fields/)** for all methods and examples.

Show your support
-----------------

[](#show-your-support)

Give a ⭐️ if this project helped you!

###  Health Score

58

—

FairBetter than 98% of packages

Maintenance89

Actively maintained with recent releases

Popularity23

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity90

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 94.4% 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 ~58 days

Recently: every ~156 days

Total

47

Last Release

53d ago

Major Versions

0.13.3 → 1.0.0-alpha.12024-04-13

PHP version history (4 changes)0.0.1PHP &gt;=7.2

0.3.3PHP &gt;=7.1

1.0.0-alpha.1PHP &gt;=8.2

1.1.0PHP &gt;=8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/67724bb6880d11c1609be2abeecc7857e2fd22147eb634b3dcce3d77a2818f68?d=identicon)[rockschtar](/maintainers/rockschtar)

---

Top Contributors

[![rockschtar](https://avatars.githubusercontent.com/u/87191?v=4)](https://github.com/rockschtar "rockschtar (203 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (12 commits)")

---

Tags

composerphpsettings-apiwordpresswordpress-plugin

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/rockschtar-wordpress-settings/health.svg)

```
[![Health](https://phpackages.com/badges/rockschtar-wordpress-settings/health.svg)](https://phpackages.com/packages/rockschtar-wordpress-settings)
```

###  Alternatives

[hekmatinasser/notowo

This Package helps developers change number to word for all language on Laravel freamwork PHP

32510.4k2](/packages/hekmatinasser-notowo)

PHPackages © 2026

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