Download the PHP package millipress/millibase without Composer
On this page you can find all versions of the php package millipress/millibase. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download millipress/millibase
More information about millipress/millibase
Files in millipress/millibase
Package millibase
Short Description Declarative WordPress settings framework. Define your settings page in PHP arrays — sections, fields, tabs, validation — and get a React UI automatically.
License GPL-2.0-or-later
Informations about the package 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
| Requirement | Version |
|---|---|
| PHP | >= 7.4 |
| WordPress | >= 6.0 |
Quick Start
⚠ Plugin authors: prefix MilliBase before shipping. If you bundle MilliBase inside a distributed plugin, you must vendor-prefix it with Strauss or php-scoper. Two plugins shipping the unprefixed
MilliBase\namespace will collide at runtime — only one copy will load, and the other plugin runs against a version it wasn't tested with. See Namespace Prefixing for setup and the rationale behind MilliBase's cross-prefix-tolerant typing.
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
- Provided components — reusable React UI on
window.MilliBase.components(InfoPopover,LabelWithTooltip) for custom tabs - Conditional display — show/hide fields based on other settings values
- Settings priority — constants > config file > database > defaults
- Encryption — automatic sodium encryption for sensitive fields (keys prefixed with
enc_) - Config file sync — write settings to PHP files for pre-WordPress access (blog-aware per-operation;
_network-<id>.phpmirror for network-mode) - Network mode —
'network' => trueroutes storage towp_sitemetaand the admin page to Network Admin - Migrations — declarative
name@versionone-shot runner with per-scope state (site / network) - Backup & 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 — namespaced
GET/POST /{namespace}/v1/settings+ custom action endpoints - WP-CLI — auto-registered
wp <slug> configcommands; two Managers sharing acli.slugauto-merge into one tree - Logging — channel-prefixed
Loggerwith level gating (error/warning/debug) and a sharedmillibase_logaction; safe before WordPress loads
Documentation
Full documentation is in the docs/ directory:
- Introduction
- Installation
- Configuration
- Schema Definition
- Programmatic Access
- WP-CLI Commands
- Migrations
- Network Settings
- Custom Field Types
- Custom Tab Components
- Extending with Filters
- Namespace Prefixing
License
GPL-2.0-or-later