wms7-ip-info.php

Description: Takes the IP of the visitor. Returns an array of information about IP.

PHP version 8.0.1

Functions

wms7_who_is()

wms7_who_is(string  $user_ip, string  $provider_who_is) : \array.

Select name of WHO-IS provider.

Parameters

string $user_ip

User ip.

string $provider_who_is

Name of who is provider.

Returns

\array.

wms7_ip_api()

wms7_ip_api(string  $user_ip) : array

Retrieve ip information from the provider IP_API.

Parameters

string $user_ip

User ip.

Returns

array —

In format json.

wms7_geobytes()

wms7_geobytes(string  $user_ip) : array

Retrieve ip information from the provider Geobytes.

Parameters

string $user_ip

User ip.

Returns

array —

In format json.

wms7_ip_info()

wms7_ip_info(string  $user_ip) : array

Retrieve ip information from the provider IP_info.

Parameters

string $user_ip

User ip.

Returns

array —

In format json.

wms7_sx_geo()

wms7_sx_geo(string  $user_ip) : array

Retrieve ip information from the provider SxGeo.

Parameters

string $user_ip

User ip.

Returns

array —

In format json.

wms7_country_name()

wms7_country_name(string  $country_code) : string

Retrieve information of country of visitor.

Parameters

string $country_code

Country code.

Returns

string —

User country name.