diversen / get-browser-language
Single method that gets a browsers language, using Zend_Locale
Installs: 5 063
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- zf1/zend-locale: ^1.12
This package is auto-updated.
Last update: 2024-12-20 08:32:56 UTC
README
get-browser-language
Uses zend locale to get browser language
Install:
composer require diversen/get-browser-language
Usage:
use diversen\getBrowserLanguage; try { $ary = getBrowserLanguage::asArray(); print_r($ary); // Array ( [language] => en [language_long] => en_US ) } catch (Exception $e) { echo $e->getMessage(); }