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/v1 namespace
  • 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:


Back to top

Copyright © 2026 Lerm. Distributed under GPL-2.0-or-later.

This site uses Just the Docs, a documentation theme for Jekyll.