Spec-first
Every module is specified before it is built; the spec is the source of truth.
Corex is a WordPress framework with a clean, layered architecture: a self-booting core
(corex-core), a PSR-11 container, thin controllers over fat services over repositories,
dynamic FSE blocks as reusable components, a shared-schema forms engine, a fluent
QueryBuilder, a wp corex make:* CLI, and runtime design tokens (theme.json → CSS
variables → per-site brand.json).
Target: WordPress 7.0+, PHP 8.3+, FSE block themes. Namespace Corex\, CLI
wp corex, CSS prefix --corex-.
Spec-first
Every module is specified before it is built; the spec is the source of truth.
Everything injected
Dependencies resolve through a PSR-11 container — testable by construction.
Blocks are components
All blocks are dynamic and server-rendered; sections compose from them.
RTL first
Logical CSS properties everywhere; Arabic layouts correct by default.