Skip to content

Commit 9b3449c

Browse files
committed
Supported CakePHP 5
1 parent 3f4349b commit 9b3449c

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
[![Latest Stable Version](https://img.shields.io/packagist/v/ip2location/ip2location-cakephp.svg)](https://packagist.org/packages/ip2location/ip2location-cakephp)
33
[![Total Downloads](https://img.shields.io/packagist/dt/ip2location/ip2location-cakephp.svg?style=flat-square)](https://packagist.org/packages/ip2location/ip2location-cakephp)
44

5-
IP2Location CakePHP plugin enables the user to find the country, region, city, coordinates, zip code, time zone, ISP, domain name, connection type, area code, weather, MCC, MNC, mobile brand name, elevation and usage typ, IP address type and IAB advertising category from IP address using IP2Location database. It has been optimized for speed and memory utilization. Developers can use the API to query all IP2Location BIN databases or web service for applications written using CakePHP.
5+
IP2Location CakePHP plugin enables the user to find the country, region, district, city, coordinates, zip code, time zone, ISP, domain name, connection type, area code, weather, MCC, MNC, mobile brand name, elevation and usage type, IP address type, IAB advertising category and ASN from IP address using IP2Location database. It has been optimized for speed and memory utilization. Developers can use the API to query all IP2Location BIN databases or web service for applications written using CakePHP.
66

7+
Note: This plugin works in CakePHP 4 and CakePHP 5.
78

8-
## INSTALLATION
9-
For CakePHP 4.x
109

11-
1. Run the command: `composer require ip2location/ip2location-cakephp` to download the plugin into the CakePHP 4 platform.
10+
## INSTALLATION
11+
1. Run the command: `composer require ip2location/ip2location-cakephp` to download the plugin into the CakePHP platform.
1212
2. Download latest IP2Location BIN database
1313
- IP2Location free LITE database at https://lite.ip2location.com
1414
- IP2Location commercial database at https://www.ip2location.com
@@ -24,7 +24,7 @@ Please select the right package for download.
2424
## USAGE
2525
In this tutorial, we will show you on how to create a **TestsController** to display the IP information.
2626

27-
1. Create a **TestsController** in CakePHP 4 using the below command line
27+
1. Create a **TestsController** in CakePHP using the below command line
2828
```
2929
php bin/cake bake controller Tests
3030
```
@@ -88,6 +88,9 @@ class TestsController extends AppController
8888
echo 'Usage Type: ' . $record['usageType'] . '<br>';
8989
echo 'Address Type: ' . $record['addressType'] . '<br>';
9090
echo 'Category: ' . $record['category'] . '<br>';
91+
echo 'District: ' . $record['district'] . '<br>';
92+
echo 'ASN: ' . $record['asn'] . '<br>';
93+
echo 'AS: ' . $record['as'] . '<br>';
9194
9295
$record = $IP2Location->getWebService('8.8.8.8');
9396
echo 'Result from Web service:<br>';

0 commit comments

Comments
 (0)