Download the PHP package peak/array-validation without Composer
On this page you can find all versions of the php package peak/array-validation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download peak/array-validation
More information about peak/array-validation
Files in peak/array-validation
Download peak/array-validation
More information about peak/array-validation
Files in peak/array-validation
Vendor peak
Package array-validation
Short Description Validation utilities for array structure
License MIT
Package array-validation
Short Description Validation utilities for array structure
License MIT
Please rate this library. Is it a good library?
Informations about the package array-validation
Peak/ArrayValidation
Installation
composer require peak/array-validation
What is this?
This component help you to validate array structure by:
- validating the type of any key values
- ensuring a data structure with expected keys requirements
- preventing structure pollution by allowing only a set of keys
This is especially useful when dealing with json data request, before using the data, you must validate his content so you can afterward check the value of those keys with your business logic without worrying about the type or presence of any key value.
How to use
8 Usages
1- General validation "à la carte" (stateless)
2- Validation with fluent interface (stateful)
3- Strict validation with fluent interface (stateful)
4- Create a ValidationDefinition for later usage
5- Create a validation Schema for later usage
Schema is just another way to write validation definitions. This format is ideal when you want to store schemas in file (ex: json, php array file, yml, etc.)
6- Strict validation using ValidationDefinition
7- Strict validation using Schema
8- Validation and Strict Validation with ValidationBuilder
and with strict validation:
Validation methods
All versions of array-validation with dependencies
PHP Build Version
Package Version
The package peak/array-validation contains the following files
Loading the files please wait ....