PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  All requests RSS feed  >  What is the best PHP localization visitor country class?  >  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 - 1 year ago (2014-12-03)

Localization visitor country with PHP

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

+2

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

Ask clarification

2 Recommendations

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

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

0

Picture of Dragan Petar Zlatkovski by Dragan Petar Zlatkovski package author package author Reputation 235 - 10 months 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.

+1

Picture of Manuel Lemos by Manuel Lemos Reputation 11100 - 1 year 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
: 
: