Skip to content

Ofloo/ip2c.php

trunk
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
Usage information
-----------------
Basicly what this lib does is look up the location of an IP from ip2c.info.
Check example.php for more information. Pretty much self explanatory.

// locate ip input ip returns true or false when it failed looking up the ip.
// when ip is null it will lookup the IP it used to connect to the API
bool locate ([mixed ip][, bool secure])

// returns type array ip wich was looked up
array address (void)

// returns type array 2 char abbreveration
array abbr_short (void)

// returns type array 3 char abbreveration
array abbr_long (void)

// returns type array full country name
array country (void)

// returns type array registry where the ip was allocated
array registry (void)

// returns type array when the ip was allocated
array assigned (void)

Donations
---------
Bitcoin: 1wqZdYXE7hdU4BTFV9vrUiBUD9LdEdQAj

About

php library to work with ip2c.info service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages