WPMoo Framework
WordPress Micro Object-Oriented Framework
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/wptoolkit/wpmoo/archive/refs/heads/dev.zipWPMoo – WordPress Micro Object-Oriented Framework
A modern, lightweight WordPress development framework for building plugins with fluent, expressive APIs, PicoCSS-first design, and strict architectural boundaries.
⚠️ Pre-stable release (
v0.1.0) — Breaking changes expected beforev1.0.0. Not yet recommended for production.
🚀 Features
-
Fluent builders for options pages, metaboxes, and layout components:
use WPMoo\Moo; use WPMoo\Fields\Field; Moo::page('site_settings', __('Site Settings', 'wpmoo')) ->addField(Field::input('site_title')->label(__('Site Title', 'wpmoo'))) ->addLayout( Moo::layout('tabs') ->add_tab('general', __('General', 'wpmoo'), [ Field::toggle('dark_mode')->label(__('Dark Mode', 'wpmoo')), ]) ); -
[x] PicoCSS-first UI – Clean, responsive admin interfaces with no custom WP overrides.
-
[x] Domain-isolated architecture – Fields, Layouts, Pages are fully decoupled.
-
[x] WordPress-decoupled core – Business logic is testable without WordPress.
-
[x] GPL-2.0-or-later licensed – Fully compliant with WordPress plugin guidelines.
-
[x] Complete tooling: PHPCS + WPCS + custom standards PHPStan static analysis PHPUnit unit & integration tests GitHub Actions CI (PHP 7.4–8.3, WP 6.5+)
Installation
composer require wpmoo/wpmoo:dev-dev
Development
- Run all checks:
composer check - Watch assets:
composer run watch - Run tests:
vendor/bin/phpunit - Generate code:
composer moo -- generate:field toggle
License
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License v2.0 or later.
See the full license at: https://spdx.org/licenses/GPL-2.0-or-later.html
Copyright © 2025 WPMoo.org Built with ❤️ for the WordPress community.