nette-schema

Official

Validate and normalize data with Nette Schema.

Authornette
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides a PHP-based approach to validate and normalize data structures using Nette Schema (Expect). It helps developers ensure configurations are correct, API inputs are sanitized, and runtime data conforms to defined shapes, reducing runtime errors and inconsistencies.

Core Features & Use Cases

  • Validate and normalize data structures against a defined schema.
  • Support nested structures, arrays, patterns, and type rules.
  • Ideal for configuration validation, API input validation, and data processing pipelines in PHP projects leveraging the Nette Schema library.
  • Clear, actionable error reporting to guide fixes.

Quick Start

Install the Nette Schema package:

  • composer require nette/schema

Create a simple schema and validate data:

  • Define a schema with Expect::structure([...]) and use the Processor to validate a data array
  • Catch ValidationException to handle invalid input.

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: nette-schema
Download link: https://github.com/nette/claude-code/archive/main.zip#nette-schema

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 223,000+ vetted skills library on demand.