![]() Function NameĮxpect a IP2Location ISO 3166-2 Subdivision Code CSV file. Below is the information returned:īelow is the description of the functions available in the Region class. Will return a full list of countries information if country code not provided. Provide a ISO 3166 country code to get the country information in array. Function NameĮxpect a IP2Location Country Information CSV file. If an array of $ipData is supplied, it will return the list of IP address data found.īelow is the description of the functions available in the Country class. Return the real IP address of the visitor. Return null on error.Ĭonvert IPv4 range into a list of IPv4 CIDR notation.Ĭonvert IPv4 CIDR notation into a list of IPv4 addresses.Ĭonvert IPv6 range into a list of IPv6 CIDR notation.Ĭonvert IPv6 CIDR notation into a list of IPv6 addresses. Translate IPv6 address from decimal number into hexadecimal address. Translate IPv6 address from hexadecimal address to decimal format. Translate IPv4 address from decimal number to dotted-decimal address. Translate IPv4 address from dotted-decimal address to decimal format. Verify if a string is a valid IPv6 address. Verify if a string is a valid IPv4 address. ![]() Return remaining credit of the web service account.īelow is the description of the functions available in the IpTools class. Return an array of the complete IP list in CIDR format of the detected row record based on the given IP address.īelow is the description of the functions available in the WebService class. Note: although the above names are not exactly matched with the names given in this link, but they are self-described. You can visit IP2Location for the description of each field. Return the database's type, 1 to 26 respectively for DB1 to DB26. Return the database's compilation date as a string of the form 'YYYY-MM-DD' Full path of IP2Location BIN data file.įor SHARED_MEMORY and MEMORY_CACHE, it will require your server to have sufficient memory to hold the BIN data, otherwise it will raise the errors during the object initialization.Database Classīelow is the description of the functions available in the Database class. You can check the example.php file to learn more about usage. To test this installation, please browse examples/example.php using web browser. Install this package using composer as below:Ĭomposer require ip2location/ip2location-php There are more than 13 types of information that you can retrieve from an IP address. If you require different granularity of IP information, you can visit to download the relevant BIN file, and the information will made ready for you. That's it, and no code modification needed. If you would like to enable IPv6 support, you just need to replace your BIN file with IPv6 version. Monthly update is available for both IP2Location LITE and commercial database. Commercial database is availabe at (Comprehensive with high accuracy).LITE database is available at (Free with limited accuracy).prevent password sharing and abuse of serviceįree IP2Location LITE and commerical databases are available for download.analyze your web server logs to determine the countries of your visitors.select the geographically closest mirror.This module can be used in many types of projects such as: This module uses a file based database available at. This PHP module provides fast lookup of country, region, district, city, latitude, longitude, ZIP code, time zone, ISP, domain name, connection speed, IDD code, area code, weather station code, weather station name, MNC, MCC, mobile brand, elevation, usage type, address type, IAB category and ASN from IP address by using IP2Location database. This is the official release maintained by
0 Comments
Leave a Reply. |