diversen / get-browser-language
Single method that gets a browsers language, using Zend_Locale
Installs: 4 888
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-10-20 08:12:40 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(); }