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
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 type that any IP address or hostname originates from. It has been optimized for speed and memory utilization. Developers can use the API to query all IP2Location BIN databases for applications written using CakePHP.
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 type that any IP address or hostname originates from. 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.
6
6
7
7
8
8
## INSTALLATION
@@ -41,6 +41,21 @@ namespace App\Controller;
41
41
use App\Controller\AppController;
42
42
use IP2LocationCakePHP\Controller\IP2LocationCoresController;
43
43
44
+
// (required) Define IP2Location API key.
45
+
define('IP2LOCATION_API_KEY', 'your_api_key');
46
+
47
+
// (required) Define IP2Location Web service package of different granularity of return information.
48
+
define('IP2LOCATION_PACKAGE', 'WS1');
49
+
50
+
// (optional) Define to use https or http.
51
+
define('IP2LOCATION_USESSL', false);
52
+
53
+
// (optional) Define extra information in addition to the above-selected package. Refer to https://www.ip2location.com/web-service/ip2location for the list of available addons.
54
+
define('IP2LOCATION_ADDONS', []);
55
+
56
+
// (optional) Define Translation information. Refer to https://www.ip2location.com/web-service/ip2location for available languages.
57
+
define('IP2LOCATION_LANGUAGE', 'en');
58
+
44
59
/**
45
60
* Tests Controller
46
61
*/
@@ -55,8 +70,9 @@ class TestsController extends AppController
0 commit comments