Skip to content
Permalink
Browse files

Built WhichBrowser from commit 3b014b7 on WhichBrowser/WhichBrowser o…

…n branch dev
  • Loading branch information...
NielsLeenheer committed Nov 30, 2015
1 parent 1e730a6 commit 4935527cf8f30209acfd797eb297775cb04619a7
Showing with 32,624 additions and 30,790 deletions.
  1. +30 −0 bootstrap.php
  2. +3 −3 composer.json
  3. +163 −158 data/browsers-bots.php
  4. +77 −78 data/browsers-chrome.php
  5. +133 −134 data/build-android.php
  6. +283 −283 data/id-android.php
  7. +22 −0 data/manufacturer-names.php
  8. +0 −22 data/manufacturers.php
  9. +12,563 −12,575 data/models-android.php
  10. +14 −14 data/models-asha.php
  11. +14 −14 data/models-bada.php
  12. +48 −48 data/models-blackberry.php
  13. +37 −37 data/models-brew.php
  14. +76 −75 data/models-feature.php
  15. +27 −27 data/models-firefoxos.php
  16. +71 −71 data/models-ios.php
  17. +11 −11 data/models-palmos.php
  18. +0 −8 data/models-s30.php
  19. +13 −0 data/models-s30plus.php
  20. +132 −132 data/models-s40.php
  21. +132 −131 data/models-s60.php
  22. +43 −43 data/models-tizen.php
  23. +42 −42 data/models-touchwiz.php
  24. +61 −61 data/models-wm.php
  25. +267 −267 data/models-wp.php
  26. +8,841 −8,841 data/profiles.php
  27. +12 −0 src/Constants/DeviceSubType.php
  28. +28 −0 src/Constants/DeviceType.php
  29. +14 −0 src/Constants/EngineType.php
  30. +15 −0 src/Constants/Feature.php
  31. +14 −0 src/Constants/Flag.php
  32. +13 −0 src/Constants/Id.php
  33. +26 −0 src/Data/Bots.php
  34. +29 −0 src/Data/BrowserIds.php
  35. +35 −0 src/Data/BuildIds.php
  36. +31 −0 src/Data/Chrome.php
  37. +269 −0 src/Data/DeviceModels.php
  38. +19 −0 src/Data/DeviceProfiles.php
  39. +21 −0 src/Data/Manufacturers.php
  40. +167 −0 src/Model/Browser.php
  41. +153 −0 src/Model/Device.php
  42. +39 −0 src/Model/Engine.php
  43. +35 −0 src/Model/Family.php
  44. +343 −0 src/Model/Main.php
  45. +92 −0 src/Model/Os.php
  46. +68 −0 src/Model/Primitive/Base.php
  47. +81 −0 src/Model/Primitive/NameVersion.php
  48. +35 −0 src/Model/Using.php
  49. +286 −0 src/Model/Version.php
  50. +51 −128 src/analyser.php
  51. +150 −0 src/analyser/Corrections.php
  52. +402 −0 src/analyser/Derive.php
  53. +148 −0 src/analyser/Header.php
  54. +17 −0 src/analyser/Header/Baidu.php
  55. +63 −0 src/analyser/Header/BrowserId.php
  56. +47 −0 src/analyser/Header/OperaMini.php
  57. +50 −0 src/analyser/Header/Puffin.php
  58. +107 −0 src/analyser/Header/UCBrowserNew.php
  59. +38 −0 src/analyser/Header/UCBrowserOld.php
  60. +30 −0 src/analyser/Header/Useragent.php
  61. +36 −0 src/analyser/Header/Useragent/Bot.php
  62. +1,902 −0 src/analyser/Header/Useragent/Browser.php
  63. +22 −0 src/analyser/Header/Useragent/Device.php
  64. +33 −0 src/analyser/Header/Useragent/Device/Cars.php
  65. +216 −0 src/analyser/Header/Useragent/Device/Ereader.php
  66. +232 −0 src/analyser/Header/Useragent/Device/Gaming.php
  67. +31 −0 src/analyser/Header/Useragent/Device/Media.php
  68. +1,088 −0 src/analyser/Header/Useragent/Device/Mobile.php
  69. +36 −0 src/analyser/Header/Useragent/Device/Signage.php
  70. +995 −0 src/analyser/Header/Useragent/Device/Television.php
  71. +144 −0 src/analyser/Header/Useragent/Engine.php
  72. +1,542 −0 src/analyser/Header/Useragent/Os.php
  73. +43 −0 src/analyser/Header/Wap.php
  74. +0 −16 src/analyser/baidu.php
  75. +0 −57 src/analyser/browser-id.php
  76. +252 −253 src/analyser/camouflage.php
  77. +0 −45 src/analyser/opera-mini.php
  78. +0 −48 src/analyser/puffin.php
  79. +0 −117 src/analyser/uc.php
  80. +0 −6,075 src/analyser/useragent.php
  81. +0 −40 src/analyser/wap.php
  82. +0 −70 src/constants.php
  83. +0 −359 src/data.php
  84. +21 −147 src/parser.php
  85. +0 −360 src/primitives.php
@@ -0,0 +1,30 @@
<?php
spl_autoload_register(function ($class) {
// project-specific namespace prefix
$prefix = 'WhichBrowser\\';
// base directory for the namespace prefix
$base_dir = __DIR__ . '/src/';
// does the class use the namespace prefix?
$len = strlen($prefix);
if (strncmp($prefix, $class, $len) !== 0) {
// no, move to the next registered autoloader
return;
}
// get the relative class name
$relative_class = substr($class, $len);
// replace the namespace prefix with the base directory, replace namespace
// separators with directory separators in the relative class name, append
// with .php
$file = $base_dir . str_replace('\\', '/', $relative_class) . '.php';
// if the file exists, require it
if (file_exists($file)) {
require $file;
}
});
@@ -17,8 +17,8 @@
},

"autoload": {
"classmap": [
"src/parser.php"
]
"psr-4": {
"WhichBrowser\\": "src/"
}
}
}

Large diffs are not rendered by default.

@@ -1,82 +1,81 @@
<?php
namespace WhichBrowser\Data;
namespace WhichBrowser\Data;
Chrome::$DESKTOP = [
'0.2.149' => 'stable',
'0.3.154' => 'stable',
'0.4.154' => 'stable',
'1.0.154' => 'stable',
'2.0.172' => 'stable',
'3.0.195' => 'stable',
'4.0.249' => 'stable',
'4.1.249' => 'stable',
'5.0.375' => 'stable',
'6.0.472' => 'stable',
'7.0.517' => 'stable',
'8.0.552' => 'stable',
'9.0.597' => 'stable',
'10.0.648' => 'stable',
'11.0.696' => 'stable',
'12.0.742' => 'stable',
'13.0.782' => 'stable',
'14.0.835' => 'stable',
'15.0.874' => 'stable',
'16.0.912' => 'stable',
'17.0.963' => 'stable',
'18.0.1025' => 'stable',
'19.0.1084' => 'stable',
'20.0.1132' => 'stable',
'21.0.1180' => 'stable',
'22.0.1229' => 'stable',
'23.0.1271' => 'stable',
'24.0.1312' => 'stable',
'25.0.1364' => 'stable',
'26.0.1410' => 'stable',
'27.0.1453' => 'stable',
'28.0.1500' => 'stable',
'29.0.1547' => 'stable',
'30.0.1599' => 'stable',
'31.0.1650' => 'stable',
'32.0.1700' => 'stable',
'33.0.1750' => 'stable',
'34.0.1847' => 'stable',
'35.0.1916' => 'stable',
'36.0.1985' => 'stable',
'37.0.2062' => 'stable',
'38.0.2125' => 'stable',
'39.0.2171' => 'stable',
'40.0.2214' => 'stable',
'41.0.2272' => 'stable',
'42.0.2311' => 'stable',
'43.0.2357' => 'stable',
'44.0.2403' => 'stable',
'45.0.2454' => 'stable',
'46.0.2490' => 'stable',
];
Chrome::$MOBILE = [
'16.0.912' => 'beta',
'18.0.1025' => 'stable',
'25.0.1364' => 'stable',
'27.0.1453' => 'stable',
'29.0.1547' => 'stable',
'30.0.1599' => 'stable',
'31.0.1650' => 'stable',
'32.0.1700' => 'stable',
'33.0.1750' => 'stable',
'34.0.1847' => 'stable',
'35.0.1916' => 'stable',
'36.0.1985' => 'stable',
'37.0.2062' => 'stable',
'38.0.2125' => 'stable',
'39.0.2171' => 'stable',
'40.0.2214' => 'stable',
'41.0.2272' => 'stable',
'42.0.2311' => 'stable',
'43.0.2357' => 'stable',
'44.0.2403' => 'stable',
'45.0.2454' => 'stable',
'46.0.2490' => 'stable',
];
Chrome::$DESKTOP = [
'0.2.149' => 'stable',
'0.3.154' => 'stable',
'0.4.154' => 'stable',
'1.0.154' => 'stable',
'2.0.172' => 'stable',
'3.0.195' => 'stable',
'4.0.249' => 'stable',
'4.1.249' => 'stable',
'5.0.375' => 'stable',
'6.0.472' => 'stable',
'7.0.517' => 'stable',
'8.0.552' => 'stable',
'9.0.597' => 'stable',
'10.0.648' => 'stable',
'11.0.696' => 'stable',
'12.0.742' => 'stable',
'13.0.782' => 'stable',
'14.0.835' => 'stable',
'15.0.874' => 'stable',
'16.0.912' => 'stable',
'17.0.963' => 'stable',
'18.0.1025' => 'stable',
'19.0.1084' => 'stable',
'20.0.1132' => 'stable',
'21.0.1180' => 'stable',
'22.0.1229' => 'stable',
'23.0.1271' => 'stable',
'24.0.1312' => 'stable',
'25.0.1364' => 'stable',
'26.0.1410' => 'stable',
'27.0.1453' => 'stable',
'28.0.1500' => 'stable',
'29.0.1547' => 'stable',
'30.0.1599' => 'stable',
'31.0.1650' => 'stable',
'32.0.1700' => 'stable',
'33.0.1750' => 'stable',
'34.0.1847' => 'stable',
'35.0.1916' => 'stable',
'36.0.1985' => 'stable',
'37.0.2062' => 'stable',
'38.0.2125' => 'stable',
'39.0.2171' => 'stable',
'40.0.2214' => 'stable',
'41.0.2272' => 'stable',
'42.0.2311' => 'stable',
'43.0.2357' => 'stable',
'44.0.2403' => 'stable',
'45.0.2454' => 'stable',
'46.0.2490' => 'stable',
];
Chrome::$MOBILE = [
'16.0.912' => 'beta',
'18.0.1025' => 'stable',
'25.0.1364' => 'stable',
'27.0.1453' => 'stable',
'29.0.1547' => 'stable',
'30.0.1599' => 'stable',
'31.0.1650' => 'stable',
'32.0.1700' => 'stable',
'33.0.1750' => 'stable',
'34.0.1847' => 'stable',
'35.0.1916' => 'stable',
'36.0.1985' => 'stable',
'37.0.2062' => 'stable',
'38.0.2125' => 'stable',
'39.0.2171' => 'stable',
'40.0.2214' => 'stable',
'41.0.2272' => 'stable',
'42.0.2311' => 'stable',
'43.0.2357' => 'stable',
'44.0.2403' => 'stable',
'45.0.2454' => 'stable',
'46.0.2490' => 'stable',
];

0 comments on commit 4935527

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