SymfonyComponentHttpFoundationIpUtils

Http utility functions.

Summary

No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private properties found
N/A
File
vendorSymfonyComponentHttpFoundationIpUtils.php
Package
Default
Class hierarchy
SymfonyComponentHttpFoundationIpUtils

Tags

author

Fabien Potencier fabien@symfony.com

Methods

checkIp()

checkIp(string  $requestIp, string  $ip) : boolean

Validates an IPv4 or IPv6 address.

Parameters

string $requestIp
string $ip

Returns

boolean —

Whether the IP is valid

static

Tags

None found

checkIp4()

checkIp4(string  $requestIp, string  $ip) : boolean

Validates an IPv4 address.

Parameters

string $requestIp
string $ip

Returns

boolean —

Whether the IP is valid

static

Tags

None found

checkIp6()

checkIp6(string  $requestIp, string  $ip) : boolean

Validates an IPv6 address.

Parameters

string $requestIp
string $ip

Throws

RuntimeException

When IPV6 support is not enabled

Returns

boolean —

Whether the IP is valid

static
See also

Tags

author

David Soria Parra

__construct()

__construct() 

This class should not be instantiated

Tags

None found