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

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

alexrah/wp-admin-settings
=========================

Helper Class to create Wordpress Admin settings panels

2.2.0(2y ago)113MITPHPPHP &gt;=7.0.0

Since Sep 26Pushed 2y ago1 watchersCompare

[ Source](https://github.com/alexrah/wp-admin-settings)[ Packagist](https://packagist.org/packages/alexrah/wp-admin-settings)[ Docs](https://github.com/alexrah/wp-admin-settings)[ RSS](/packages/alexrah-wp-admin-settings/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (6)Used By (0)

About
-----

[](#about)

Helper class to create wp-admin setting dashboards

Install with Composer
---------------------

[](#install-with-composer)

```
composer require alexrah/wp-admin-settings
```

Usage
-----

[](#usage)

#### Initialize and configure options

[](#initialize-and-configure-options)

```
use WpAdminSettings\WpAdminSettings;

const OPTION_NAME = 'wp_option_name';

$oSettings = new WpAdminSettings([
	'label' => 'Option Panel Heading',
	'options_name' => OPTION_NAME,
	'capability' => 'update_themes'
]);

$oSettings->set_option(['name' => 'single_option_name','label' => 'Paypal Client ID','required' => true]);

$oSettings->create();
```

#### retrieve single option

[](#retrieve-single-option)

```
WpAdminSettings\WpAdminSettings::get_stored_option(OPTION_NAME,'single_option_name');
```

#### retrieve all options

[](#retrieve-all-options)

```
WpAdminSettings\WpAdminSettings::get_stored_option(OPTION_NAME);
```

Changelog
---------

[](#changelog)

#### Version 2.0.0

[](#version-200)

- PHP8 ready
- remove external deps
- update code to make it more generic

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 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 ~128 days

Total

5

Last Release

817d ago

Major Versions

0.1.0 → 1.0.02022-09-26

1.0.0 → 2.0.02024-02-14

### Community

Maintainers

![](https://www.gravatar.com/avatar/19648e66952936c124a58d9b115cf982047c8b58791c0045e95ff8dfb9cb416c?d=identicon)[alexrah](/maintainers/alexrah)

---

Top Contributors

[![alexrah](https://avatars.githubusercontent.com/u/905490?v=4)](https://github.com/alexrah "alexrah (10 commits)")

---

Tags

wordpressSettingswpwp-admin

### Embed Badge

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

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

###  Alternatives

[roots/bedrock

WordPress boilerplate with Composer, easier configuration, and an improved folder structure

6.5k441.8k2](/packages/roots-bedrock)[ffraenz/private-composer-installer

A composer install helper for private packages

2331.7M5](/packages/ffraenz-private-composer-installer)[tareq1988/wordpress-settings-api-class

WordPress settings API Abstraction Class

46611.1k3](/packages/tareq1988-wordpress-settings-api-class)[proteusthemes/wp-customizer-utilities

Advanced WordPress customizer controls and settings for better user experience.

329.4k1](/packages/proteusthemes-wp-customizer-utilities)[typisttech/wp-option-store

Extending WordPress Options API, read options from places other than database, the OOP way

1517.3k2](/packages/typisttech-wp-option-store)[typisttech/wp-admin-notices

A simplified OOP implementation of the WordPress admin notices

141.2k](/packages/typisttech-wp-admin-notices)

PHPackages © 2026

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