assertions
OfficialUnified PHP validation with a custom Assert.
Software Engineering#php#validate#assert#guard-clauses#value-objects#domain-invariants#webmozart-assert
Authordairectiv
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides a centralized, project-specific assertion utility for PHP to ensure data validity and type safety across the domain layer, reducing bugs and boilerplate in value objects, aggregates, and domain services.
Core Features & Use Cases
- Custom Assert class that extends Webmozart\Assert with project-specific behavior and error handling.
- Enforces domain invariants within value object factories, aggregates, and guard clauses.
- Guides consistent usage, messaging, and testing to maintain invariant enforcement across the codebase.
Quick Start
Install project dependencies via Composer and begin using the custom Assert in your domain classes to validate inputs, enforce constraints, and throw the project's InvalidArgumentException on failure.
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: assertions Download link: https://github.com/dairectiv/dairectiv/archive/main.zip#assertions 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 223,000+ vetted skills library on demand.