Skip to content

edwinyoo44/libIPGeolocation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libIPGeolocation

A virion for PocketMine-MP.

You can use this to get the geolocation of an IP from ip-api.com.

Usage

You can see some example in here: ProxyChecker

use edwinyoo44\libIPGeolocation\IPGeolocation;


IPGeolocation::getStatus(String $ip); // return string success or error

IPGeolocation::getContinent(String $ip); // return string

IPGeolocation::getContinentCode(String $ip); // return string

IPGeolocation::getCountry(String $ip); // return string

IPGeolocation::getCountryCode(String $ip); // return string

IPGeolocation::getRegion(String $ip); // return string

IPGeolocation::getRegionName(String $ip); // return string

IPGeolocation::getCity(String $ip); // return string

IPGeolocation::getDistrict(String $ip); // return string

IPGeolocation::isProxy(String $ip); // return bool