Lerm AdminConfig
Schema-driven WordPress admin configuration infrastructure. Define options pages, metaboxes, profile screens, taxonomy screens, comment screens, and block editor panels — all from declarative PHP schemas.
Get started now View on GitHub
Features
- Schema-driven — Declare fields, sections, and containers in PHP arrays; the runtime compiles them into WordPress admin UI
- Plugin and embedded modes — Ship as a standalone plugin or embed inside a theme
- Multiple container types — Options pages, metaboxes, profile screens, taxonomy screens, comment screens, block editor panels
- 35+ built-in field types — Text, textarea, switcher, select, checkbox, radio, color, media, typography, icon, accordion, tabbed, and more
- REST API transport — Save, import, export, and reset via
lerm-admin-config/v1namespace - PHP 8.0+ and WordPress 6.6+ — Modern requirements, clean architecture
Quick Start
The smallest copyable setup:
use Lerm\AdminConfig\WordPress\PluginBootstrap;
use Lerm\AdminConfig\WordPress\Runtime;
PluginBootstrap::boot(
__FILE__,
static function ( Runtime $runtime ): void {
$runtime->register( array(
'id' => 'my-options',
'store' => array( 'key' => 'my_plugin_options' ),
'sections' => array(
'general' => array(
'fields' => array(
array(
'id' => 'site_name',
'type' => 'text',
'default' => '',
),
),
),
),
) );
}
);
Documentation
Browse the full documentation:
- Quick Start — Copyable onboarding path
- Schema Protocol — Schema structure and compilation rules
- Extension API — Custom field types, validators, data sources
- Extension Recipes — Minimal extension snippets
- Field Types — Usage examples for every built-in field type
- REST API — REST transport contract
- Support Matrix — Compatibility snapshot
- Block Editor Field Matrix — Block-panel field type support