respect-validation/docs/rules/Url.md
Henrique Moody 10df3211f5
Add "Categorization" section to rule documentations
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2019-05-11 19:16:21 +02:00

607 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

Categorization

  • Internet

Changelog

Version Description
0.8.0 Created

See also: