2015-01-30 09:40:06 +01:00
|
|
|
# Url
|
|
|
|
|
2017-03-27 14:47:07 +02:00
|
|
|
- `Url()`
|
2015-01-30 09:40:06 +01:00
|
|
|
|
2018-06-11 17:54:59 +02:00
|
|
|
Validates whether the input is a URL.
|
2015-01-30 09:40:06 +01:00
|
|
|
|
|
|
|
```php
|
2015-10-20 02:53:25 +02:00
|
|
|
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
|
|
|
```
|
|
|
|
|
2019-05-11 18:32:13 +02:00
|
|
|
## Categorization
|
|
|
|
|
|
|
|
- Internet
|
|
|
|
|
2017-03-27 22:04:13 +02:00
|
|
|
## Changelog
|
|
|
|
|
|
|
|
Version | Description
|
|
|
|
--------|-------------
|
|
|
|
0.8.0 | Created
|
|
|
|
|
2015-08-20 06:38:41 +02:00
|
|
|
***
|
2015-01-30 09:40:06 +01:00
|
|
|
See also:
|
|
|
|
|
2017-03-28 11:53:14 +02:00
|
|
|
- [Domain](Domain.md)
|
|
|
|
- [Email](Email.md)
|
|
|
|
- [FilterVar](FilterVar.md)
|
|
|
|
- [Phone](Phone.md)
|
2018-12-11 13:31:50 +01:00
|
|
|
- [Slug](Slug.md)
|
2017-03-28 11:53:14 +02:00
|
|
|
- [VideoUrl](VideoUrl.md)
|