Download the PHP package douyasi/locator without Composer
On this page you can find all versions of the php package douyasi/locator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download douyasi/locator
More information about douyasi/locator
Files in douyasi/locator
Download douyasi/locator
More information about douyasi/locator
Files in douyasi/locator
Vendor douyasi
Package locator
Short Description Browser Preferred Language Detector
License MIT
Homepage http://douyasi.com
Package locator
Short Description Browser Preferred Language Detector
License MIT
Homepage http://douyasi.com
Please rate this library. Is it a good library?
Informations about the package locator
Locator
Description
Browser Preferred Language Detector, detect by browser Accept-Language
request header.
Installation
Get Composer, then run in terminal:
Usage
Example in Laravel
You can use
$detector->detect(['zh-CN', 'en'])
to replaceRequest::getPreferredLanguage(['zh-CN', 'en'])
in Laravel.
API
Detect your browser preferred language:
Get browser preferrend languages:
You can get some data (json format) like blow:
Reference
Copyright
Copyright (c) 2016 douyasi org by ycrao
All versions of locator with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.5.9
ext-intl Version *
ext-intl Version *
The package douyasi/locator contains the following files
Loading the files please wait ....