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
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,6 +83,22 @@ Below is the description of the functions available in the **IpTools** class.
83
83
| compress_ipv6 | Compress a IPv6 to shorten the length. |
84
84
| expand_ipv6 | Expand a shorten IPv6 to full length. |
85
85
86
+
## Country
87
+
Below is the description of the functions available in the **Country** class.
88
+
89
+
| Function Name | Description |
90
+
|---|---|
91
+
| Constructor | Expect a IP2Location Country Information CSV file. This database is free for download at https://www.ip2location.com/free/country-information|
92
+
| get_country_info | Provide a ISO 3166 country code to get the country information in array. Will return a full list of countries information if country code not provided. Below is the information returned: <ul><li>country_code</li><li>country_alpha3_code</li><li>country_numeric_code</li><li>capital</li><li>country_demonym</li><li>total_area</li><li>population</li><li>idd_code</li><li>currency_code</li><li>currency_name</li><li>currency_symbol</li><li>lang_code</li><li>lang_name</li><li>cctld</li></ul> |
93
+
94
+
## Region
95
+
Below is the description of the functions available in the **Region** class.
96
+
97
+
| Function Name | Description |
98
+
|---|---|
99
+
| Constructor | Expect a IP2Location ISO 3166-2 Subdivision Code CSV file. This database is free for download at https://www.ip2location.com/free/iso3166-2|
100
+
| get_region_code | Provide a ISO 3166 country code and the region name to get ISO 3166-2 subdivision code for the region. |
101
+
86
102
# Dependencies
87
103
This library requires IP2Location BIN data file to function. You may download the BIN data file at
88
104
* IP2Location LITE BIN Data (Free): https://lite.ip2location.com
0 commit comments