PHP Classes

Language test by IP and Browser: Guess the user idiom finding the IP country

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 1,019 All time: 3,600 This week: 524Up
Version License PHP version Categories
language_teste 1.0BSD License3.0Localization, HTTP, Web services
Description 

Author

This class can guess the user idiom by finding the IP country or the browser idiom.

It can access to the hostip.info Web services API to determine the country of the network the user computer IP address belongs.

Alternatively it can the HTTP request Accept-language header to determine the idiom used by the the user browser.

Picture of Igor Herson Aquino de França
Name: Igor Herson Aquino de ... is available for providing paid consulting. Contact Igor Herson Aquino de ... .
Classes: 11 packages by
Country: Brazil Brazil
Age: 41
All time rank: 22614 in Brazil Brazil
Week rank: 195 Up15 in Brazil Brazil Down
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files (2)  
File Role Description
Plain text file languages.php Class class for detect language
Accessible without login Plain text file sample.php Example little sample of this class

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,019
This week:0
All time:3,600
This week:524Up