Skip to content

Commit 568f58c

Browse files
committed
Updated README.md to use PX11 as example.
1 parent 5d1b988 commit 568f58c

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Below are the methods supported in this class.
2020
|**string** getDatabaseVersion()|Return the database's compilation date as a string of the form 'YYYY-MM-DD',|
2121
|**string** getPackageVersion()|Return the database's type, 1 to 10 respectively for PX1 to PX10. Please visit https://www.ip2location.com/databases/ip2proxy for details.|
2222
|**string** getModuleVersion()|Return the version of module.|
23-
|**array** lookup($ip)|Return the IP information in array. Below is the information returned:<ul><li>ipNumber</li><li>ipVersion</li><li>ipAddress</li><li>countryCode</li><li>countryName</li><li>regionName</li><li>cityName</li><li>isp</li><li>domain</li><li>usageType</li><li>asn</li><li>as</li><li>lastSeen</li><li>threat</li><li>proxyType</li><li>isProxy</li></ul>You can visit [IP2Location](https://www.ip2location.com/database/px10-ip-proxytype-country-region-city-isp-domain-usagetype-asn-lastseen-threat-residential) website for the description of each field. Note: although the above names are not exactly matched with the names given in this link, but they are self-described.|
23+
|**array** lookup($ip)|Return the IP information in array. Below is the information returned:<ul><li>ipNumber</li><li>ipVersion</li><li>ipAddress</li><li>countryCode</li><li>countryName</li><li>regionName</li><li>cityName</li><li>isp</li><li>domain</li><li>usageType</li><li>asn</li><li>as</li><li>lastSeen</li><li>threat</li><li>proxyType</li><li>isProxy</li><li>provider</li></ul>You can visit [IP2Location](https://www.ip2location.com/database/px10-ip-proxytype-country-region-city-isp-domain-usagetype-asn-lastseen-threat-residential) website for the description of each field. Note: although the above names are not exactly matched with the names given in this link, but they are self-described.|
2424

2525

2626

@@ -29,7 +29,7 @@ Below are the methods supported in this class.
2929
| Method Name | Description |
3030
| ----------- | ------------------------------------------------------------ |
3131
| Constructor | Expect 3 input parameters:<ol><li>IP2Proxy API Key.</li><li>Package (PX1 - PX10)</li><li>Use HTTPS or HTTP</li></ol> |
32-
| lookup | Return the proxy information in array.<ul><li>countryCode</li><li>countryName</li><li>regionName</li><li>cityName</li><li>isp</li><li>domain</li><li>usageType</li><li>asn</li><li>as</li><li>lastSeen</li><li>threat</li><li>proxyType</li><li>isProxy</li></ul> |
32+
| lookup | Return the proxy information in array.<ul><li>countryCode</li><li>countryName</li><li>regionName</li><li>cityName</li><li>isp</li><li>domain</li><li>usageType</li><li>asn</li><li>as</li><li>lastSeen</li><li>threat</li><li>proxyType</li><li>isProxy</li><li>provider</li></ul> |
3333
| getCredit | Return remaining credit of the web service account. |
3434

3535

@@ -47,7 +47,7 @@ Open and read IP2Proxy binary database. There are 3 modes:
4747
```php
4848
require 'vendor/autoload.php';
4949

50-
$db = new \IP2Proxy\Database('vendor/ip2location/ip2proxy-php/data/PX10.SAMPLE.BIN', \IP2PROXY\Database::FILE_IO);
50+
$db = new \IP2Proxy\Database('vendor/ip2location/ip2proxy-php/data/PX11.SAMPLE.BIN', \IP2PROXY\Database::FILE_IO);
5151
```
5252

5353
To start lookup result from database, use the following codes:
@@ -80,6 +80,13 @@ echo '<p><strong>Proxy Type: </strong>' . $records['proxyType'] . '</p>';
8080
*/
8181
echo '<p><strong>Is Proxy: </strong>' . $records['isProxy'] . '</p>';
8282
echo '<p><strong>ISP: </strong>' . $records['isp'] . '</p>';
83+
echo '<p><strong>Domain: </strong>' . $records['domain'] . '</p>';
84+
echo '<p><strong>Usage Type: </strong>' . $records['usageType'] . '</p>';
85+
echo '<p><strong>ASN: </strong>' . $records['asn'] . '</p>';
86+
echo '<p><strong>AS: </strong>' . $records['as'] . '</p>';
87+
echo '<p><strong>Last Seen: </strong>' . $records['lastSeen'] . '</p>';
88+
echo '<p><strong>Threat: </strong>' . $records['threat'] . '</p>';
89+
echo '<p><strong>Provider: </strong>' . $records['provider'] . '</p>';
8390
```
8491

8592

@@ -111,6 +118,7 @@ if ($results !== false) {
111118
echo '<p><strong>Last Seen: </strong>' . $results['lastSeen'] . ' Day(s)</p>';
112119
echo '<p><strong>Proxy Type: </strong>' . $results['proxyType'] . '</p>';
113120
echo '<p><strong>Threat: </strong>' . $results['threat'] . '</p>';
121+
echo '<p><strong>Provider: </strong>' . $results['provider'] . '</p>';
114122
echo '<p><strong>Is Proxy: </strong>' . $results['isProxy'] . '</p>';
115123
}
116124
```

0 commit comments

Comments
 (0)