wilycode / validators
Ready-to-use validators built on the wilycode/validator contract.
Requires
- php: ^8.4
- ext-filter: *
- ext-mbstring: *
- psr/http-message: ^1.1 || ^2.0
- wilycode/validator: ^0.1
Requires (Dev)
- phpunit/phpunit: ^11.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-10-26 00:40:14 UTC
README
Optional collection of ready-to-use validators built on wilycode/validator.
composer require wilycode/validators
The package includes common validators for strings, arrays, numbers, dates, e-mail addresses, URLs, UUIDs, JSON, uploaded files and other transport-level values.
Use only what you need
The collection is optional. Applications can depend only on wilycode/validator and implement their own rules. Under the MIT license you may also copy and adapt an individual validator when that is preferable to depending on the whole implementation collection. Installing wilycode/validators does not mean every validator is loaded at runtime; Composer/PSR-4 loads classes on demand.
Requirements
- PHP
^8.4 - PHP extension
mbstring psr/http-message^1.1 || ^2.0wilycode/validator^0.1
Installation
composer require wilycode/validators
License
MIT. See LICENSE.