proipinfo / php-client
PHP module provides client for proip.info binary databases
Installs: 283
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/proipinfo/php-client
Requires (Dev)
- psalm/plugin-symfony: ^2.3
This package is auto-updated.
Last update: 2025-12-24 15:31:27 UTC
README
Requirements
- PHP 5.6 or newer
- bcmath extension
Installation
composer require proipinfo/php-client
Usage
<?php require dirname(__FILE__) . '/vendor/autoload.php'; $db = new ProIPInfo\DbStream('/path/to/db', true); $client = new ProIPInfo\Client($db); $rec = $client->getRecord('8.8.8.8'); if (empty($rec)) { throw(new \Exception('Not found')); } echo $rec->countryCode; echo $rec->region; echo $rec->city; echo $rec->ISP;
More information docs on ProIP.info