You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-1Lines changed: 18 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,6 @@ Below is the description of the functions available in the **BIN Database** look
56
56
| get_addresstype | Returns the IP address type (A-Anycast, B-Broadcast, M-Multicast & U-Unicast) of IP address or domain name. |
57
57
| get_category | Returns the IAB content taxonomy category of IP address or domain name. |
58
58
59
-
60
59
## Web Service
61
60
Below is the description of the functions available in the **Web Service** lookup.
62
61
@@ -66,6 +65,24 @@ Below is the description of the functions available in the **Web Service** looku
66
65
| lookup | Return the IP information in array.<ul><li>country_code</li><li>country_name</li><li>region_name</li><li>city_name</li><li>latitude</li><li>longitude</li><li>zip_code</li><li>time_zone</li><li>isp</li><li>domain</li><li>net_speed</li><li>idd_code</li><li>area_code</li><li>weather_station_code</li><li>weather_station_name</li><li>mcc</li><li>mnc</li><li>mobile_brand</li><li>elevation</li><li>usage_type</li><li>address_type</li><li>category</li><li>continent<ul><li>name</li><li>code</li><li>hemisphere</li><li>translations</li></ul></li><li>country<ul><li>name</li><li>alpha3_code</li><li>numeric_code</li><li>demonym</li><li>flag</li><li>capital</li><li>total_area</li><li>population</li><li>currency<ul><li>code</li><li>name</li><li>symbol</li></ul></li><li>language<ul><li>code</li><li>name</li></ul></li><li>idd_code</li><li>tld</li><li>translations</li></ul></li><li>region<ul><li>name</li><li>code</li><li>translations</li></ul></li><li>city<ul><li>name</li><li>translations</li></ul></li><li>geotargeting<ul><li>metro</li></ul></li><li>country_groupings</li><li>time_zone_info<ul><li>olson</li><li>current_time</li><li>gmt_offset</li><li>is_dst</li><li>sunrise</li><li>sunset</li></ul></li><ul> |
67
66
| get_credit | Return remaining credit of the web service account. |
68
67
68
+
## IpTools
69
+
Below is the description of the functions available in the **IpTools** class.
70
+
71
+
| Function Name | Description |
72
+
|---|---|
73
+
| is_ipv4 | Return either true or false. Verify if a string is a valid IPv4 address. |
74
+
| is_ipv6 | Return either true or false. Verify if a string is a valid IPv6 address. |
75
+
| ipv4_to_decimal | Translate IPv4 address from dotted-decimal address to decimal format. Return null on error. |
76
+
| decimal_to_ipv4 | Translate IPv4 address from decimal number to dotted-decimal address. Return null on error. |
77
+
| ipv6_to_decimal | Translate IPv6 address from hexadecimal address to decimal format. Return null on error. |
78
+
| decimal_to_ipv6 | Translate IPv6 address from decimal number into hexadecimal address. Return null on error. |
79
+
| ipv4_to_cidr | Convert IPv4 range into a list of IPv4 CIDR notation. |
80
+
| cidr_to_ipv4 | Convert IPv4 CIDR notation into a list of IPv4 addresses. |
81
+
| ipv6_to_cidr | Convert IPv6 range into a list of IPv6 CIDR notation. |
82
+
| cidr_to_ipv6 | Convert IPv6 CIDR notation into a list of IPv6 addresses. |
83
+
| compress_ipv6 | Compress a IPv6 to shorten the length. |
84
+
| expand_ipv6 | Expand a shorten IPv6 to full length. |
85
+
69
86
# Dependencies
70
87
This library requires IP2Location BIN data file to function. You may download the BIN data file at
71
88
* IP2Location LITE BIN Data (Free): https://lite.ip2location.com
0 commit comments