PHP Classes

What is the best PHP localization visitor country class?: Localization visitor country with PHP

Recommend this page to a friend!
  All requests RSS feed  >  What is the best PHP localization vis...  >  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 localization visitor country class?

Edit

Picture of MDSAY by MDSAY - 9 years ago (2014-12-03)

Localization visitor country with PHP

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

+4

Hello, I need a solution to determine the country of a visitor of my Web site with PHP.

Ask clarification

3 Recommendations

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

This recommendation solves the problem.
This recommendation does not solve the problem.

+1

Picture of zinsou A.A.E.Moïse by zinsou A.A.E.Moïse package author package author Reputation 5840 - 6 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 recommendation solves the problem.
This recommendation does not solve the problem.

+1

Picture of Dragan Zlatkovski by Dragan Zlatkovski package author package author Reputation 280 - 8 years ago (2015-04-17) Comment

This is one of the best class. Store information in database for user country, city, state, Geo coordinates, IP address, ISP, ORG, and much more


GeoIP Country Whois Locator: Determine the country of an IP address using GeoIP

This recommendation solves the problem.
This recommendation does not solve the problem.

+2

Picture of Manuel Lemos by Manuel Lemos Reputation 23625 - 9 years ago (2014-12-14) Comment

There are several ways to obtain the location of a visitor.

For instance you can use HTML5 JavaScript APIs to ask the user location on the browser, but that does not get you the visitor location from the IP address.

There are also several Web services that you can call to get the location of the user from the IP address. The problem is that some that are free to use are a bit overloaded.

An alternative is to download the IP range database from GeoIP service and query that database locally on your server.

Some packages query a local MySQL database loaded with GeoIP database data. It works but you need to setup and update the database yourself. Performing too many database queries may slow down your site.

This class uses a simpler solution that consists on querying the GeoIP database file directly. No MySQL database is necessary.


Recommend package
: 
: