bd-validation-rule

Community

Define new, pure validation rules for BetterData.

AuthorLonsdale201
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Enforces the addition of new, pure validation rules to BetterData by implementing the Rule interface and decorating data objects with #[Rule] attributes, ensuring rules remain predictable and composable.

Core Features & Use Cases

  • Pure, attribute-based rules that implement the Rule contract.
  • Automatic null handling: rules skip null values unless paired with #[Required].
  • Use Case: introduce a new rule to enforce a specific data format on a DTO field.

Quick Start

Create a new PHP class implementing BetterData\Validation\Rule, add a #[Rule] attribute, and wire it into the validation system.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 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: bd-validation-rule
Download link: https://github.com/Lonsdale201/wp-agent-skills/archive/main.zip#bd-validation-rule

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.