# nette/schema

📐 Validating data structures against a given Schema.

Repository: https://github.com/nette/schema
Canonical: https://ross.abutalabs.com/products/nette-schema
Homepage: https://doc.nette.org/schema
Language: PHP
License: NOASSERTION
License Family: other
Topics: nette, nette-framework, validation, schema, json, data-structures, php
Last push: 2026-09-02T04:20:47+00:00

## Health v2 (maintenance only)
Score: 91/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 100, release rhythm 74, longevity 100
- inputs: {"age_days": 2715, "days_push": 0, "days_rel": 16, "gap_med": 175, "n_releases_24m": 4}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1011, forks 30 (observed 2026-09-03T02:15:15.445132+00:00)

## What it is
Nette Schema is a PHP library for validating and normalizing data structures against a defined schema using a fluent Expect API. It processes arrays or objects (e.g., API payloads or config files) and returns normalized data or detailed validation errors.

## Use cases
- validate user-submitted API payloads in PHP
- validate and normalize configuration files
- enforce structure of nested arrays and objects
- validate JSON data against a schema
- normalize input data types before processing
- collect all validation error messages at once

## When to choose
- you need schema-based validation and normalization of arrays/objects in PHP 8.1+
- you want a readable, fluent schema definition API
- you need detailed, structured validation error messages
- you're already in the Nette ecosystem

## When to avoid
- you need JSON Schema standard compliance or interoperability
- your project is not PHP
- you only need simple type checks that built-in PHP functions cover

## Facets
- artifact type: library
- maturity: stable
- function: form-handling, serialization, configuration-management
- domain: developer-tools, web-development, apis
- platform: php, cli
- tags: data-structures, schema-validation, normalization, nette-framework, config-validation

## Member repositories
- nette/schema (main) score 91

## Provenance
- Observed fields: from GitHub, fetched 2026-09-03T02:15:15.445132+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:11:51.911350+00:00, confidence not recorded.
  - readme: https://github.com/nette/schema (fetched 2026-09-03T02:15:15.445132+00:00, sha 6b0c1916b3c9)
  - homepage: https://doc.nette.org/schema (fetched 2026-08-29T13:11:48.596594+00:00, sha deac99f8b50a)
  - site_page: https://doc.nette.org/en/contributing/documentation (fetched 2026-08-29T13:11:48.602593+00:00, sha 7d2a71a103a6)
  - site_page: https://doc.nette.org/en (fetched 2026-08-29T13:11:48.600861+00:00, sha 593c2062fa13)
  - site_page: https://nette.org/en/releases (fetched 2026-08-29T13:11:48.604930+00:00, sha aa39e1b5cbb1)
  - site_page: https://doc.nette.org (fetched 2026-08-29T13:11:48.611864+00:00, sha b052116b2a14)
  - site_page: https://nette.org/en/history (fetched 2026-08-29T13:11:48.613667+00:00, sha 286192274b00)
- Data as of 2026-08-30T08:39:29.467469+00:00.
