mirror of
https://github.com/Respect/Validation.git
synced 2026-03-16 15:25:45 +01:00
504 B
504 B
Ip
Ip()Ip(mixed $options)
Validates IP Addresses. This validator uses the native filter_var() PHP function.
v::ip()->validate('192.168.0.1');
You can pass a parameter with filter_var flags for IP.
v::ip(FILTER_FLAG_NO_PRIV_RANGE)->validate('127.0.0.1'); // false
Changelog
| Version | Description |
|---|---|
| 0.5.0 | Implemented IP range validatio |
| 0.3.9 | Created |
See also: