GeoIP2 PHP API v3.1.0

ProviderInterface

Table of Contents

Methods

city()  : City
country()  : Country

Methods

city()

public city(string $ipAddress) : City
Parameters
$ipAddress : string

an IPv4 or IPv6 address to lookup

Return values
City

a City model for the requested IP address

country()

public country(string $ipAddress) : Country
Parameters
$ipAddress : string

an IPv4 or IPv6 address to lookup

Return values
Country

a Country model for the requested IP address


        
On this page

Search results