Registry / networking / ip2location-ip2location-php

ip2location-ip2location-php

JSON →
library9.8.1phppackagistunverified

[Official Release] IP2Location PHP API to get location info from IPv4 and IPv6 address.

composer require ip2location/ip2location-php
INSTALL
IMPORT
SIG · IP2LOCATION-IP2LOC
I
ip2location-ip2location-php
networkingphpv9.8.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Database
use IP2Location\Database;

Looks up geolocation information for an IP address.

use IP2Location\Database; $db = new Database('./IP2LOCATION.BIN', Database::FILE_IO); $records = $db->lookup('8.8.8.8');
Debug
Known issues
breakingRequires a binary database file (IP2LOCATION.BIN) which must be downloaded separately.
fix
Download the database file from IP2Location's website and place it in the correct path.
affects: >=9.0.0
Upgrade
Version history
9.8.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Amazon
1
Resources
ip2location-ip2location-php — pip install ip2location-ip2location-php · libregistry