Ipv6 final class
Minn\Http\Ipv6 · public/minn/src/Minn/Http/Ipv6.php · 62 lines
IPv6 addresses as text: written out in full (eight groups, or six and an IPv4 tail), compressed ("::" for the longest run of zero groups, the first when two tie), and checked. Zone suffixes ("%eth0") do not pass.
Uses 1
Public
| static | expand(string $ip): string# | The address with "::" expanded into zero groups. |
| static | compress(string $ip): string# | The address with leading zeros dropped from all-digit groups and the longest zero run as "::". |
| static | valid(string $ip): bool# | Whether the text is an IPv6 address (with an optional IPv4 tail). |
Nothing matches.