Skip to content
Permalink
Browse files

Merge branch 'master' into patch-1

  • Loading branch information
NielsLeenheer committed Dec 8, 2019
2 parents d44587d + 3a354cd commit 6ba145d879c3ca16741cfa479dadf63ba1b8844a
@@ -0,0 +1,6 @@
/tests export-ignore
/.coveralls.yml export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.travis.yml export-ignore
/phpunit.xml export-ignore
@@ -9,6 +9,7 @@ php:
- 7.0
- 7.1
- 7.2
- 7.3

before_script:
- composer self-update
@@ -6,7 +6,7 @@ This is an extremely complicated and almost completely useless browser sniffing
WhichBrowser/Parser-PHP
=======================

The PHP version of WhichBrowser for use on a server. Fully compatible with PHP 5.4 or higher, including PHP 7 and HHVM.
The PHP version of WhichBrowser for use on a server. Fully compatible with PHP 5.4 or higher, including PHP 7.

[![Build Status](https://travis-ci.org/WhichBrowser/Parser-PHP.svg?branch=master)](https://travis-ci.org/WhichBrowser/Parser)
[![Coverage Status](https://coveralls.io/repos/WhichBrowser/Parser-PHP/badge.svg?branch=master&service=github)](https://coveralls.io/github/WhichBrowser/Parser-PHP?branch=master)
@@ -58,7 +58,7 @@ The useragent header looks like Opera 11.10 on Linux, but we know it's Opera Min
Requirements
-----------------

WhichBrowser requires with PHP 5.4 or higher and supports PHP 7 and HHVM. WhichBrowser is compatible with the PSR-4 autoloading standard and follows PSR-1 and PSR-2 coding style.
WhichBrowser requires with PHP 5.4 or higher and supports PHP 7. WhichBrowser is compatible with the PSR-4 autoloading standard and follows PSR-1 and PSR-2 coding style.


How to install it
@@ -478,6 +478,8 @@ An object of the `WhichBrowser\Model\Version` class is used for the `version` pr
a string containing the original version number.
* `alias`
a string containing an alias for the version number, ie. 'XP' for Windows '5.1'.
* `nickname`
a string containing a nickname for the version number, ie. 'Mojave' for OS X '10.14'.
* `details`
an integer containing the number of digits of the version number that should be printed.

@@ -29,9 +29,9 @@
},

"require-dev": {
"symfony/yaml": ">=2.8",
"symfony/yaml": "~2.8 || ~3.4 || ~4.2 || ~5.0",
"phpunit/php-code-coverage": "^2.2|^3.0",
"phpunit/PHPUnit": "^4.0|^5.0",
"phpunit/phpunit": "^4.0|^5.0",
"satooshi/php-coveralls": "^1.0",
"icomefromthenet/reverse-regex" : "0.0.6.3",
"squizlabs/php_codesniffer": "2.5.*"
@@ -160,13 +160,15 @@
[ 'name' => 'Openwave', 'id' => 'up', 'regexp' =>'/UP\. ?Browser(?:\/([a-z0-9.]*))?/iu', 'details' => 2, 'type' => Constants\DeviceType::MOBILE ],
[ 'name' => 'Openwave', 'id' => 'km', 'regexp' =>'/KM\.Browser\/([0-9.]+)/iu', 'details' => 2, 'type' => Constants\DeviceType::MOBILE ],
[ 'name' => 'Openwave', 'id' => 'up', 'regexp' =>'/UP\/([0-9.]+)/u', 'details' => 2, 'type' => Constants\DeviceType::MOBILE ],
[ 'name' => 'Oppo Browser', 'id' => 'oppo', 'regexp' =>'/OppoBrowser\/([0-9.]+)/iu' ],
[ 'name' => 'Quark Browser', 'id' => 'quark', 'regexp' =>'/Quark\/([0-9.]*)/u', 'details' => 3 ],
[ 'name' => 'SEMC Browser', 'id' => 'semc', 'regexp' =>'/SEMC-Browser\/([0-9.]*)/u' ],
[ 'name' => 'STNC HitchHiker' , 'id' => 'stnc', 'regexp' =>'/STNC-WTL\/[0-9.]*/u' ],
[ 'name' => 'Sogou Mobile', 'id' => 'sogou', 'regexp' =>'/SogouMobileBrowser\/([0-9.]*)/u', 'details' => 2 ],
[ 'name' => 'Swing Browser', 'id' => 'swing', 'regexp' =>'/Swing\(And\)\/([0-9.]*)/u', 'details' => 3 ],
[ 'name' => 'Symphony', 'id' => 'symphony', 'regexp' =>'/Symphony ([0-9.]+)$/u' ],
[ 'name' => 'TinY', 'id' => 'ucpro', 'regexp' =>'/ucpro\/([0-9.]+)/iu' ],
[ 'name' => 'Vivo Browser', 'id' => 'vivo', 'regexp' =>'/VivoBrowser\/([0-9.]+)/iu' ],
[ 'name' => 'WebLite', 'id' => 'weblite', 'regexp' =>'/WebLite\/([0-9.]*)/u', 'type' => Constants\DeviceType::MOBILE ],

/* Television browsers */
@@ -76,6 +76,10 @@
'67.0.3396' => 'stable',
'68.0.3440' => 'stable',
'69.0.3497' => 'stable',
'72.0.3626' => 'stable',
'73.0.3683' => 'stable',
'74.0.3729' => 'stable',
'75.0.3770' => 'stable',
];

Chrome::$MOBILE = [
@@ -124,4 +128,10 @@
'67.0.3396' => 'stable',
'68.0.3440' => 'stable',
'69.0.3497' => 'stable',
'70.0.3538' => 'stable',
'71.0.3578' => 'stable',
'72.0.3626' => 'stable',
'73.0.3683' => 'stable',
'74.0.3729' => 'stable',
'75.0.3770' => 'stable',
];

0 comments on commit 6ba145d

Please sign in to comment.
You can’t perform that action at this time.