Overview

Namespaces

  • GeoIp2
    • Database
    • Exception
    • Model
    • Record
    • WebService
  • MaxMind
    • Db
      • Reader
  • PHP

Interfaces

  • ProviderInterface
  • Overview
  • Namespace
  • Class

Interface ProviderInterface

Direct known implementers

GeoIp2\Database\Reader, GeoIp2\WebService\Client
Namespace: GeoIp2
Located at ProviderInterface.php
Methods summary
public GeoIp2\Model\Country
# country( string $ipAddress )

Parameters

$ipAddress
an IPv4 or IPv6 address to lookup

Returns

GeoIp2\Model\Country
a Country model for the requested IP address
public GeoIp2\Model\City
# city( string $ipAddress )

Parameters

$ipAddress
an IPv4 or IPv6 address to lookup

Returns

GeoIp2\Model\City
a City model for the requested IP address
GeoIP2 PHP API v2.9.0 API documentation generated by ApiGen