Download the PHP package utopia-php/validators without Composer
On this page you can find all versions of the php package utopia-php/validators. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download utopia-php/validators
More information about utopia-php/validators
Files in utopia-php/validators
Download utopia-php/validators
More information about utopia-php/validators
Files in utopia-php/validators
Vendor utopia-php
Package validators
Short Description A lightweight collection of reusable validators for Utopia projects
License MIT
Package validators
Short Description A lightweight collection of reusable validators for Utopia projects
License MIT
Please rate this library. Is it a good library?
Informations about the package validators
Utopia Validators
Reusable validation building blocks for Utopia projects.
This package exposes a consistent API for common HTTP-oriented validation concerns such as input sanitisation, URL checks, IP validation, hostname filtering, lists enforcement, and more.
Installation
Usage
Validators expose a predictable contract:
isValid(mixed $value): bool– core validation rulegetDescription(): string– human readable rule summarygetType(): string– expected PHP type (string, integer, array, ...)isArray(): bool– hint whether the validator expects an array input
For advanced flows combine validators with Multiple, AnyOf, AllOf, NoneOf, or wrap checks with helpers such as Nullable.
Available Validators
AllOf,AnyOf,NoneOf,Multiple– composition helpersArrayList,Assoc,Nullable,WhiteList,WildcardBoolean,Integer,FloatValidator,Numeric,RangeDomain,Host,Hostname,IP,URLHexColor,JSON,Text
Development
Run the static analysis and test suites from the project root:
This project is released under the MIT License.
All versions of validators with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.0
The package utopia-php/validators contains the following files
Loading the files please wait ...