Skip to main content

better-route v0.3.0 · better-data v1.0.0

Better Docs

Two complementary WordPress PHP libraries — contract-first REST routing and typed DTOs with security primitives. Use either alone, or compose them via the BetterRouteBridge.

better-route

Composer-first WordPress REST contract layer — fluent router, middleware pipeline, Resource DSL for CPTs and custom tables, full WooCommerce integration, OpenAPI 3.1 export.

better-data

PHP 8.3+ DTO and Presenter library — typed immutable data hydrated from posts, users, terms, options, custom rows, and REST requests; symmetric write sinks; context-aware presentation; Secret / #[Sensitive] / AES-256-GCM #[Encrypted].

Composition

DTO-driven REST endpoints with auto-generated OpenAPI schemas — the BetterRouteBridge wires better-data DTOs into a better-route Router.