arraylib/schema

Transformation and validation array by schema to another format

dev-master 2024-05-13 04:58 UTC

This package is not auto-updated.

Last update: 2025-06-10 08:30:38 UTC


README

The main goals of this package are validate, map fields and transform incoming array.

In this package we use schema to work with array. Schema contains nodes tree which allow you to manipulate with fields of array.

Examples of usage:

examples/make_schema_from_array.php - show how to make schema from array and add validation and transformation
examples/schema_version.php - show how to make schema version (json format). You can save it and use to create schema
examples/build_schema.php - show how to build schema manually