mirror of
https://github.com/Respect/Validation.git
synced 2024-06-26 17:20:16 +02:00
1eb5b9d3c5
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
606 B
606 B
Uuid
Uuid()
Uuid(int $version)
Validates whether the input is a valid UUID. It also supports validation of specific versions 1, 3, 4 and 5.
v::uuid()->validate('Hello World!'); // false
v::uuid()->validate('eb3115e5-bd16-4939-ab12-2b95745a30f3'); // true
v::uuid(1)->validate('eb3115e5-bd16-4939-ab12-2b95745a30f3'); // false
v::uuid(4)->validate('eb3115e5-bd16-4939-ab12-2b95745a30f3'); // true
Categorization
- Strings
Changelog
Version | Description |
---|---|
2.0.0 | Created |
See also: