PHPackages                             clearcode/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. clearcode/wordpress-settings

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

clearcode/wordpress-settings
============================

WordPress Settings library by Clearcode.

v1.1.3(3y ago)0581GPL-3.0+PHPPHP &gt;=7.4

Since Mar 30Pushed 3y ago2 watchersCompare

[ Source](https://github.com/ClearcodeHQ/wordpress-settings)[ Packagist](https://packagist.org/packages/clearcode/wordpress-settings)[ Docs](https://clearcode.cc)[ RSS](/packages/clearcode-wordpress-settings/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (1)Versions (8)Used By (1)

Clearcode WordPress Settings
============================

[](#clearcode-wordpress-settings)

[WordPress](https://wordpress.org) Settings library by [Clearcode](https://clearcode.cc).

Installation
============

[](#installation)

```
$ composer require clearcode/wordpress-settings
```

```
require __DIR__ . '/vendor/autoload.php';

new Settings( [
    'option_name' => [
        'group' => 'option_group', // optional
        'type' => 'string', // optional
        'description' => 'setting description', // optional
        'rest' => false, // optional
        'pages' => [
            'page_slug' => [
                'title' => 'page title',
                'capability' => 'manage_options', // optional
                'menu' => [
                    'title' => 'menu title',
                    'icon' => 'dashicons-admin-plugins',
                    'position' => null,
                    'parent' => 'options-general.php'
                ],
                'tabs' => [
                    'tab_1' => [
                        'title' => 'tab title',
                        'sections' => [
                            'section_1' => [
                                'title' => 'section title',
                                'render' => [
                                    'template' => 'section', // template file path
                                    'args' => [
                                        'content' => 'section description'
                                    ]
                                ],
                                'fields' => [
                                    'field_1' => [
                                        'title' => 'field title',
                                        'default' => 'default value',
                                        'sanitize' => function( $value ) { return $value; }, // callback function
                                        'render' => [
                                            'template' => 'input', // supported templates: input, textarea, select
                                            'args' => [
                                                'atts' => [
                                                    'type' => 'text'
                                                ],
                                                'before' => 'before text',
                                                'after' => 'after text',
                                                'description' => 'description text'
                                            ]
                                        ]
                                    ]
                                ]
                            ]
                        ]
                    ]
                ]
            ]
        ]
    ]
] );
```

License
=======

[](#license)

GPL3.0+ see [LICENSE.txt](LICENSE.txt) and [AUTHORS.txt](AUTHORS.txt)

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity57

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

Recently: every ~118 days

Total

7

Last Release

1434d ago

PHP version history (2 changes)v1.0.0PHP &gt;=7.2

v1.1.3PHP &gt;=7.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10326736?v=4)[Piotr Niewiadomski](/maintainers/PiotrPress)[@PiotrPress](https://github.com/PiotrPress)

---

Top Contributors

[![PiotrPress](https://avatars.githubusercontent.com/u/10326736?v=4)](https://github.com/PiotrPress "PiotrPress (7 commits)")

---

Tags

composerwordpressSettingsoptionslibrarycmswpblog

### Embed Badge

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

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

###  Alternatives

[johnpbloch/wordpress

WordPress is open source software you can use to create a beautiful website, blog, or app.

6039.7M638](/packages/johnpbloch-wordpress)[philippbaschke/acf-pro-installer

An install helper for Advanced Custom Fields PRO

278724.6k](/packages/philippbaschke-acf-pro-installer)

PHPackages © 2026

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