wp-plugin-dto
CommunityDesign native WordPress plugin DTOs with rigor.
AuthorLonsdale201
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Design and review native DTOs for WordPress plugins to enforce strict data boundaries, immutability, and clear separation from repositories, presenters, and HTML views.
Core Features & Use Cases
- Strong from_array hydration and WP_Error-based validation to catch user input issues early.
- Supports nested DTO collections, secret value objects, and explicit defaults to prevent leaking data across layers.
- Clear layer boundaries between source data, DTO, validator, presenter, and view; suitable for REST controllers, admin pages, and repositories.
Quick Start
Provide a sample input array and call ProductDto::from_array() to obtain a DTO or WP_Error.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: wp-plugin-dto Download link: https://github.com/Lonsdale201/wp-agent-skills/archive/main.zip#wp-plugin-dto Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.