PHP Classes

What is the best PHP visitor location class?: Find a visitor IP address longitude and latitude

Recommend this page to a friend!
  All requests RSS feed  >  What is the best PHP visitor location...  >  Request new recommendation  >  A request is featured when there is no good recommended package on the site when it is posted. Featured requests  >  No recommendations No recommendations  

What is the best PHP visitor location class?

Edit

Picture of bocha lee by bocha lee - 9 years ago (2015-02-21)

Find a visitor IP address longitude and latitude

This request is clear and relevant.
This request is not clear or is not relevant.

+5

I want to find the visitor users IP address, latitude and longitude to in a database.

Ask clarification

3 Recommendations

Very Simple IP Details: Get IP address location and Google Maps image

This class can get IP address location and Google Maps image.

It can send a HTTP request to the IPInfo.io API to get the geographic location details of a given IP address. Currently it can obtain IP address country code, region, city, postal code, latitude, longitude, hostname and organization.

The class can also return HTML to embed a static image from Google Maps showing the geographic location of the IP address.
This recommendation solves the problem.
This recommendation does not solve the problem.

+2

Picture of zinsou A.A.E.Moïse by zinsou A.A.E.Moïse package author package author Reputation 6835 - 7 years ago (2017-08-20) Comment

new requesters could try this, it is simple and it works fine...


PHP Get Visitor Info: Get visitor information and store in a database

This class can get visitor information and store in a database.

It can retrieve several details about the current page visitor from it IP address and other request headers.

The retrieved information is stored in a MySQL database table.

Currently it record the user computer operating system, browser, IP address, country, city, geographical coordinates, the internet service provider or the organization using the ip-api.com Web services.

The stored data can be associated to a given server domain address.
This recommendation solves the problem.
This recommendation does not solve the problem.

+2

Picture of Dragan Zlatkovski by Dragan Zlatkovski package author package author Reputation 300 - 9 years ago (2015-04-01) Comment

I upload my one class where I receive information form visitors of my site. You can get information detailed information by IP and USER AGENT and store in Database. You can use your own style to show your information from database.


IP2Location PHP Module: Get geographical details of an IP with IP2Location

This class can get geographical details of an IP with IP2Location.

It can read and parse an IP2Location data file made available in the IP2Location site, so it can locate a given IP address and get geographical details associated to the IP address range.

Currently it can extract details like the country, region, city, latitude, longitude, ZIP code, time zone, ISP, domain name, connection speed, IDD code, area code, weather station code, weather station name, mcc, mnc, mobile brand, and elevation.

This class can work with both the commercial and free versions of IP2Location database.
This recommendation solves the problem.
This recommendation does not solve the problem.

+4

Picture of Manuel Lemos by Manuel Lemos Reputation 26695 - 9 years ago (2015-02-25) Comment

There are many classes that can determine the location coordinates of a given IP address. Some rely on calling an external Web service.

This one can work with IP2Location files, so it does not need to call a Web services.

It can parse the IP2Location files and find the location details of the given IP address, not only the latitude and longitude, but if you use the more complete version of the IP2Location database files, you can get also the city name.


Recommend package
: 
: