PHPackages                             millipress/millibase - 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. millipress/millibase

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

millipress/millibase
====================

Declarative WordPress settings framework. Define your settings page in PHP arrays — sections, fields, tabs, validation — and get a React UI automatically.

v1.2.4(1mo ago)1160↑256.3%1GPL-2.0-or-laterPHPPHP &gt;=7.4CI passing

Since Mar 9Pushed 1mo agoCompare

[ Source](https://github.com/MilliPress/MilliBase)[ Packagist](https://packagist.org/packages/millipress/millibase)[ RSS](/packages/millipress-millibase/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (9)Dependencies (6)Versions (11)Used By (1)

MilliBase
=========

[](#millibase)

Declarative WordPress settings framework. Define your settings page in PHP arrays — tabs, sections, fields, validation — and get a React-powered admin UI automatically.

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

[](#requirements)

RequirementVersionPHP&gt;= 7.4WordPress&gt;= 6.0Quick Start
-----------

[](#quick-start)

```
composer require millipress/millibase
```

```
use MilliBase\Manager;

$manager = new Manager([
    'slug'           => 'my-plugin',
    'option_name'    => 'my_plugin_settings',
    'page_title'     => 'My Plugin',
    'menu_title'     => 'My Plugin',
    'rest_namespace' => 'my-plugin/v1',
    'basename'       => plugin_basename(__FILE__),
    'header'         => ['title' => 'My Plugin Settings'],
    'tabs'           => [
        [
            'name'     => 'general',
            'title'    => 'General',
            'sections' => [
                [
                    'id'     => 'main',
                    'title'  => 'Main Settings',
                    'fields' => [
                        [
                            'key'     => 'general.enabled',
                            'type'    => 'toggle',
                            'label'   => 'Enable Feature',
                            'default' => true,
                        ],
                    ],
                ],
            ],
        ],
    ],
]);

// Programmatic access:
$manager->settings()->get('general.enabled'); // true
```

Features
--------

[](#features)

- **Declarative schema** — define tabs, sections, and fields in PHP arrays
- **React admin UI** — auto-generated from the schema using `@wordpress/components`
- **9 built-in field types** — text, number, password, toggle, select, unit, token-list, color, code
- **Custom extensibility** — register custom field types and custom tab components from JS
- **Conditional display** — show/hide fields based on other settings values
- **Settings priority** — constants &gt; config file &gt; database &gt; defaults
- **Encryption** — automatic sodium encryption for sensitive fields (keys prefixed with `enc_`)
- **Config file sync** — write settings to PHP files for pre-WordPress access
- **Backup &amp; restore** — transient-based backup with 12-hour expiry
- **Import / export** — settings serialization with encryption handling
- **Tab overrides** — add-on plugins can extend or replace tabs and sections via filters
- **REST API** — save, reset, restore, status, and custom action endpoints

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

[](#documentation)

Full documentation is in the [`docs/`](docs/) directory:

- [Introduction](docs/01-getting-started/01-introduction.md)
- [Installation](docs/01-getting-started/02-installation.md)
- [Configuration](docs/02-usage/01-configuration.md)
- [Schema Definition](docs/02-usage/02-schema-definition.md)
- [Programmatic Access](docs/02-usage/03-programmatic-access.md)
- [Custom Field Types](docs/03-customization/01-custom-field-types.md)
- [Custom Tab Components](docs/03-customization/02-custom-tab-components.md)
- [Extending with Filters](docs/03-customization/03-extending-with-filters.md)
- [Reference: Field Types](docs/04-reference/01-field-types.md) · [Settings API](docs/04-reference/02-settings-api.md) · [Hooks &amp; Filters](docs/04-reference/03-hooks-and-filters.md)

License
-------

[](#license)

GPL-2.0-or-later

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance89

Actively maintained with recent releases

Popularity17

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.1% 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 ~1 days

Total

9

Last Release

54d ago

### Community

Maintainers

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

---

Top Contributors

[![ouun](https://avatars.githubusercontent.com/u/32090713?v=4)](https://github.com/ouun "ouun (82 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (6 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (2 commits)")

###  Code Quality

TestsPest

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/millipress-millibase/health.svg)

```
[![Health](https://phpackages.com/badges/millipress-millibase/health.svg)](https://phpackages.com/packages/millipress-millibase)
```

PHPackages © 2026

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