PHP Classes

PHP Browser Language: Get the language that the user browser is using

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 yet rated by the usersTotal: 136 All time: 9,277 This week: 206Up
Version License PHP version Categories
browserlanguage 1.0GNU Lesser Genera...7HTTP, PHP 5
Description 

Author

This class can get the language that the user browser is using.

It takes a look at the current request HTTP request headers and determines the language that the user browser is using.

The package filters the accepted language restricting to a given list of languages configured inside the class.

If the user browser language is none of the accepted languages, the package returns a default language code that is en for English.

Picture of Rafa? Rafa?
Name: Rafa? Rafa? <contact>
Classes: 1 package by
Country: Poland Poland

  Files folder image Files (1)  
File Role Description
Plain text file BrowserLanguage.php Class Browser language

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:136
This week:0
All time:9,277
This week:206Up