mirror of
https://github.com/Respect/Validation.git
synced 2026-03-17 23:59:51 +01:00
Also fix a type in the exception message of the "Url" rule. Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
558 B
558 B
Url
Url()
Validates whether the input is a URL.
v::url()->validate('http://example.com'); // true
v::url()->validate('https://www.youtube.com/watch?v=6FOUqQt3Kg0'); // true
v::url()->validate('ldap://[::1]'); // true
v::url()->validate('mailto:john.doe@example.com'); // true
v::url()->validate('news:new.example.com'); // true
Changelog
| Version | Description |
|---|---|
| 0.8.0 | Created |
See also: