mwx / tools-wp
metaworx typed wp-cli command wrapper: commands, sub-commands, arguments and parameters as PHP objects and enums
Requires
- php: ^8.2
- mwx/lib: ^0.1
This package is auto-updated.
Last update: 2026-08-27 19:05:35 UTC
README
Typed wp-cli command wrapper: wp commands, sub-commands, arguments and
parameters modelled as PHP classes and enums. Owns the
mwx\Tools\Wp\ namespace prefix.
Contents
| Namespace | What it holds |
|---|---|
mwx\Tools\Wp\ | Wp entry point, WpInterface |
...\Wp\SubCommand\ | Typed sub-commands for core, plugin, theme and language operations |
...\Wp\Arguments\, ...\Wp\Parameters\ | Argument/parameter traits composing the commands |
...\Wp\Enums\ | Command/parameter enums |
Dependencies
Only mwx/lib (enum framework and magic accessors) — no symfony, no
process library; execution is delegated to the consuming application.
Known coupling (pre-1.0): several classes still reference the consuming
application's ComponentEnum (whose case values are application Info
classes). The planned fix is a package-owned component enum with the
Info-class mapping inverted into the application; until then this package is
only usable from applications that provide
metaworx\GetSite\Extensions\Wp\Command\Helper\ComponentEnum.
Install
Pre-publication: via the monorepo's path repository (see the repository root
README). Later: composer require mwx/tools-wp.
MIT license.