PHPackages                             arraypress/wp-register-setting-fields - 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. arraypress/wp-register-setting-fields

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

arraypress/wp-register-setting-fields
=====================================

Lightweight library for registering WordPress settings pages with fields using the Settings API, featuring tabs, conditional field visibility, repeaters, and REST API integration.

222PHPCI passing

Since Feb 24Pushed 2mo agoCompare

[ Source](https://github.com/arraypress/wp-register-setting-fields)[ Packagist](https://packagist.org/packages/arraypress/wp-register-setting-fields)[ RSS](/packages/arraypress-wp-register-setting-fields/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

WordPress Setting Fields Library
================================

[](#wordpress-setting-fields-library)

A WordPress library for creating settings pages with tabs, sections, branded headers, and 30+ field types. Handles registration, rendering, sanitization, and the Settings API — you just define your fields.

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

[](#installation)

```
composer require arraypress/wp-register-setting-fields
```

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

[](#quick-start)

```
register_setting_fields( 'my_plugin', [
    'page_title'  => 'My Plugin Settings',
    'menu_title'  => 'My Plugin',
    'parent_slug' => 'options-general.php',
    'fields'      => [
        'site_name'      => [ 'type' => 'text', 'label' => 'Site Name' ],
        'enable_feature' => [ 'type' => 'toggle', 'label' => 'Enable Feature' ],
        'items_per_page' => [ 'type' => 'number', 'label' => 'Items Per Page', 'min' => 1, 'max' => 100 ],
    ],
] );

$name = get_setting_field_value( 'my_plugin', 'site_name' );

if ( is_setting_on( 'my_plugin', 'enable_feature' ) ) {
    // Feature is enabled
}
```

Documentation
-------------

[](#documentation)

Full documentation is available at ****

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

[](#requirements)

- PHP 7.4+
- WordPress 5.8+

License
-------

[](#license)

GPL-2.0-or-later

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance56

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity12

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/cd6eb8aff0903d87eb674d1ba3c5f3653899c0d7661504eb0deb7798ed86b643?d=identicon)[arraypress](/maintainers/arraypress)

---

Top Contributors

[![arraypress](https://avatars.githubusercontent.com/u/22668877?v=4)](https://github.com/arraypress "arraypress (68 commits)")

---

Tags

settings-pagewordpresswordpress-pluginwordpress-settingswordpress-settings-api

### Embed Badge

![Health badge](/badges/arraypress-wp-register-setting-fields/health.svg)

```
[![Health](https://phpackages.com/badges/arraypress-wp-register-setting-fields/health.svg)](https://phpackages.com/packages/arraypress-wp-register-setting-fields)
```

PHPackages © 2026

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