PHP Classes

PHP Visitor Information Tracking System: Get the geographic location of a given IP address

Recommend this page to a friend!
  Info   View files Example   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2022-07-22 (14 days ago) RSS 2.0 feedNot yet rated by the usersTotal: 106 This week: 9All time: 9,538 This week: 24Up
Version License PHP version Categories
php_visitor_tracking 1.0.0BSD License5HTTP, PHP 5, User Management, Web ser..., G...
Description Author

This package can get the geographic location of a given IP address.

It can take as a parameter a given IP address that can be of the current user accessing the Web site.

The class returns the geographic location details of that user using the MaxMind GeoIP database library.

It returns details like the user browser, platform, date, time, country, state, and town.

Picture of chrys ugwu
  Performance   Level  
Name: chrys ugwu <contact>
Classes: 15 packages by
Country: Nigeria Nigeria
Innovation award
Innovation award
Nominee: 4x

Details

This project is no longer being maintained, please use Instead

PHP Visitors Tracker Documentation

99% accurate visitors tracking system.

USAGE

$stalk = new Stalk;

$stalk->ip; //outputs clients IP address

$stalk->browser->name; //outputs clients Browser name
$stalk->browser->version; //outputs clients Browser version
$stalk->browser->OS; //outputs clients Operating system

$stalk->country_code; //outputs clients country code
$stalk->country_code3; //outputs clients full country code
$stalk->country_name; //outputs clients country name
$stalk->region; //outputs clients region
$stalk->state; //outputs clients full region
$stalk->city; //outputs clients city
$stalk->postal_code; //outputs clients postal code
$stalk->latitude; //outputs clients latitude
$stalk->longitude; //outputs clients longitude
$stalk->area_code; //outputs clients area code
$stalk->dma_code; //outputs clients dma code
$stalk->metro_code; //outputs clients metro code
$stalk->continent_code; //outputs continent code

Change Log v1.01

- The get, ip and browser method was remove. - Public variables can no longer be accessed statically. eg: $stalk->city as Stalk::city() - Stalk can now be initialized as follow: - Implicit $stalk = new Stalk; - Explicit $stalk = new Stalk('11.22.33.444); or $stalk = Stalk::ip('11.22.33.444);

  Files folder image Files  
File Role Description
Files folder imagesrc (1 file, 1 directory)
Plain text file index.php Example Example script
Plain text file README.md Doc. Documentation

  Files folder image Files  /  src  
File Role Description
Files folder imagelib (1 file)
  Plain text file Stalk.php Class Class source

  Files folder image Files  /  src  /  lib  
File Role Description
  Plain text file geoip.inc Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:106
This week:9
All time:9,538
This week:24Up
For more information send a message to info at phpclasses dot org.