PHP Classes

HTTP Locale: Get the idiom and country of the user browser

Recommend this page to a friend!
  Info   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 46%Total: 1,020 All time: 3,597 This week: 673Up
Version License PHP version Categories
httplocale 1.0Artistic License4.0.6Localization, HTTP
Description 

Author

This is a very simple class that can determine the idiom and country of the user browser.

It analyzes the HTTP request header Accept-Language and parses it to obtain the idiom and the country used in the browser accessing the current script page.

The idiom and the country are returned in class variables.

Picture of Alexander Skakunov
Name: Alexander Skakunov is available for providing paid consulting. Contact Alexander Skakunov .
Classes: 9 packages by
Country: Ukraine Ukraine
Age: 42
All time rank: 232 in Ukraine Ukraine
Week rank: 214 Down2 in Ukraine Ukraine Equal
Innovation award
Innovation award
Nominee: 3x

Winner: 1x

Screenshots (1)  
  • example.png
  Files folder image Files (4)  
File Role Description
Plain text file HTTPLocale.class.php Class It makes all job
Accessible without login Plain text file index.php Example Usage example
Accessible without login Plain text file php_localizator.php Example example for gettext

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,020
This week:0
All time:3,597
This week:673Up
 User Ratings  
 
 All time
Utility:66%StarStarStarStar
Consistency:66%StarStarStarStar
Documentation:-
Examples:66%StarStarStarStar
Tests:-
Videos:-
Overall:46%StarStarStar
Rank:3180