PHPackages                             waughj/wp-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. waughj/wp-settings

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

waughj/wp-settings
==================

Classes for simplifying the creation of general settings options, sections, &amp; pages.

v1.0.0(5y ago)044GPL-3.0-or-laterPHPPHP &gt;=7.4

Since Jan 10Pushed 5y agoCompare

[ Source](https://github.com/waughjai/wp-settings)[ Packagist](https://packagist.org/packages/waughj/wp-settings)[ RSS](/packages/waughj-wp-settings/feed)WikiDiscussions master Synced 3d ago

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

WP Settings
===========

[](#wp-settings)

Classes for simplifying the creation of general settings options, sections, &amp; subpages in WordPress.

Example
-------

[](#example)

```
use WaughJ\WPSettings\WPSettingsOption;
use WaughJ\WPSettings\WPSettingsSection;
use WaughJ\WPSettings\WPSettingsPage;

$page = new WPSettingsPage( 'settings', 'design', 'Design' );
$page->addSection( 'main_scripts', 'Main Scripts' );
$page->getSection( 'main_scripts' )->addOption( 'main_css', 'Main CSS' );
$page->register();

```

Will generate a “Design” tab in Settings on WordPress admin with “Main Scripts” section &amp; option headered “Main CSS”. The value saved into that input box can then be later retrieved by calling:

```
$page->getSection( 'main_scripts' )->getOption( 'main_css' )->getValue();

```

Changelog
---------

[](#changelog)

### 1.0.0

[](#100)

- Revamp &amp; clean up code
- Upgrade to PHP 7.4

### 0.10.0

[](#0100)

- Add autoincrement option to WPSettingsOption

### 0.9.0

[](#090)

- Add ability to create page for main top admin bar

### 0.8.2

[](#082)

- Improve textarea rendering in option page:
    - Make textarea taller and wider

### 0.8.1

[](#081)

- Clean up &amp; update code &amp; fix readme errors:
- Make namespaces cleaner
- Remove outdated TestHashItem dependency
- Fix inaccurate example info in readme
- Add visibility keywords to const members

### 0.8.0

[](#080)

- Add custom render option

### 0.7.0

[](#070)

- Add select &amp; other simple input types

### 0.6.0

[](#060)

- Add Textarea Input Type to Option Class

### 0.5.0

[](#050)

- Add Specific Type Classes

### 0.4.2

[](#042)

- Fix Missing Variables

### 0.4.1

[](#041)

- Fix getAddPageFunction Method

### 0.4.0

[](#040)

- Refactor Into General WPSettings

### 0.3.0

[](#030)

- Add Page Manager

### 0.2.0

[](#020)

- Add Checkbox Input Type

### 0.1.1

[](#011)

- Make It Possible to Get Option Value (WPThemeOption method getOptionValue must be public so it can be used for other things)

### 0.1.0

[](#010)

- Initial Version

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~56 days

Recently: every ~117 days

Total

16

Last Release

1844d ago

Major Versions

v0.10.0 → v1.0.02021-04-27

PHP version history (3 changes)0.6.0PHP &gt;=7.0

v0.3.0PHP &gt;=7.2

v1.0.0PHP &gt;=7.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11161078?v=4)[waughj](/maintainers/waughj)[@waughj](https://github.com/waughj)

---

Top Contributors

[![jjwmezun](https://avatars.githubusercontent.com/u/24711797?v=4)](https://github.com/jjwmezun "jjwmezun (2 commits)")

---

Tags

wordpressSettingsoptionsgenerator

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/waughj-wp-settings/health.svg)

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

###  Alternatives

[wpbp/generator

Generator of Wordpress Plugin Boilerplate Powered

832.3k](/packages/wpbp-generator)

PHPackages © 2026

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