respect-validation/docs/rules/Url.md

34 lines
607 B
Markdown
Raw Normal View History

2015-01-30 09:40:06 +01:00
# Url
- `Url()`
2015-01-30 09:40:06 +01:00
Validates whether the input is a URL.
2015-01-30 09:40:06 +01:00
```php
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
2015-01-30 09:40:06 +01:00
```
## Categorization
- Internet
## Changelog
Version | Description
--------|-------------
0.8.0 | Created
***
2015-01-30 09:40:06 +01:00
See also:
- [Domain](Domain.md)
- [Email](Email.md)
- [FilterVar](FilterVar.md)
- [Phone](Phone.md)
2018-12-11 13:31:50 +01:00
- [Slug](Slug.md)
- [VideoUrl](VideoUrl.md)