Registry / utility / nette-schema

nette-schema

JSON →
library1.3.5phppackagistunverified

Validating data structures against a given Schema.

composer require nette/schema
INSTALL
IMPORT
SIG · NETTE-SCHEMA
N
nette-schema
utilityphpv1.3.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Schema
use Nette\Schema\Schema;

Define and validate a data structure.

<?php use Nette\Schema\Schema; $schema = Schema::fromArray([ 'name' => Schema::string(), 'age' => Schema::int()->min(0), ]); $data = $schema->normalize(['name' => 'John', 'age' => 30]);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.3.5latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
nette-schema — pip install nette-schema · libregistry