Skip to content
This repository was archived by the owner on Nov 30, 2017. It is now read-only.

Commit 2975534

Browse files
committed
Built WhichBrowser from commit 3b014b7 on WhichBrowser/WhichBrowser on branch dev
1 parent 4f1f3b4 commit 2975534

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+32623
-30810
lines changed

bootstrap.php

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
3+
spl_autoload_register(function ($class) {
4+
5+
// project-specific namespace prefix
6+
$prefix = 'WhichBrowser\\';
7+
8+
// base directory for the namespace prefix
9+
$base_dir = __DIR__ . '/src/';
10+
11+
// does the class use the namespace prefix?
12+
$len = strlen($prefix);
13+
if (strncmp($prefix, $class, $len) !== 0) {
14+
// no, move to the next registered autoloader
15+
return;
16+
}
17+
18+
// get the relative class name
19+
$relative_class = substr($class, $len);
20+
21+
// replace the namespace prefix with the base directory, replace namespace
22+
// separators with directory separators in the relative class name, append
23+
// with .php
24+
$file = $base_dir . str_replace('\\', '/', $relative_class) . '.php';
25+
26+
// if the file exists, require it
27+
if (file_exists($file)) {
28+
require $file;
29+
}
30+
});

data/browsers-bots.php

+163-158
Large diffs are not rendered by default.

data/browsers-chrome.php

+77-78
Original file line numberDiff line numberDiff line change
@@ -1,82 +1,81 @@
11
<?php
22

3-
namespace WhichBrowser\Data;
3+
namespace WhichBrowser\Data;
44

5-
Chrome::$DESKTOP = [
6-
'0.2.149' => 'stable',
7-
'0.3.154' => 'stable',
8-
'0.4.154' => 'stable',
9-
'1.0.154' => 'stable',
10-
'2.0.172' => 'stable',
11-
'3.0.195' => 'stable',
12-
'4.0.249' => 'stable',
13-
'4.1.249' => 'stable',
14-
'5.0.375' => 'stable',
15-
'6.0.472' => 'stable',
16-
'7.0.517' => 'stable',
17-
'8.0.552' => 'stable',
18-
'9.0.597' => 'stable',
19-
'10.0.648' => 'stable',
20-
'11.0.696' => 'stable',
21-
'12.0.742' => 'stable',
22-
'13.0.782' => 'stable',
23-
'14.0.835' => 'stable',
24-
'15.0.874' => 'stable',
25-
'16.0.912' => 'stable',
26-
'17.0.963' => 'stable',
27-
'18.0.1025' => 'stable',
28-
'19.0.1084' => 'stable',
29-
'20.0.1132' => 'stable',
30-
'21.0.1180' => 'stable',
31-
'22.0.1229' => 'stable',
32-
'23.0.1271' => 'stable',
33-
'24.0.1312' => 'stable',
34-
'25.0.1364' => 'stable',
35-
'26.0.1410' => 'stable',
36-
'27.0.1453' => 'stable',
37-
'28.0.1500' => 'stable',
38-
'29.0.1547' => 'stable',
39-
'30.0.1599' => 'stable',
40-
'31.0.1650' => 'stable',
41-
'32.0.1700' => 'stable',
42-
'33.0.1750' => 'stable',
43-
'34.0.1847' => 'stable',
44-
'35.0.1916' => 'stable',
45-
'36.0.1985' => 'stable',
46-
'37.0.2062' => 'stable',
47-
'38.0.2125' => 'stable',
48-
'39.0.2171' => 'stable',
49-
'40.0.2214' => 'stable',
50-
'41.0.2272' => 'stable',
51-
'42.0.2311' => 'stable',
52-
'43.0.2357' => 'stable',
53-
'44.0.2403' => 'stable',
54-
'45.0.2454' => 'stable',
55-
'46.0.2490' => 'stable',
56-
];
57-
58-
Chrome::$MOBILE = [
59-
'16.0.912' => 'beta',
60-
'18.0.1025' => 'stable',
61-
'25.0.1364' => 'stable',
62-
'27.0.1453' => 'stable',
63-
'29.0.1547' => 'stable',
64-
'30.0.1599' => 'stable',
65-
'31.0.1650' => 'stable',
66-
'32.0.1700' => 'stable',
67-
'33.0.1750' => 'stable',
68-
'34.0.1847' => 'stable',
69-
'35.0.1916' => 'stable',
70-
'36.0.1985' => 'stable',
71-
'37.0.2062' => 'stable',
72-
'38.0.2125' => 'stable',
73-
'39.0.2171' => 'stable',
74-
'40.0.2214' => 'stable',
75-
'41.0.2272' => 'stable',
76-
'42.0.2311' => 'stable',
77-
'43.0.2357' => 'stable',
78-
'44.0.2403' => 'stable',
79-
'45.0.2454' => 'stable',
80-
'46.0.2490' => 'stable',
81-
];
5+
Chrome::$DESKTOP = [
6+
'0.2.149' => 'stable',
7+
'0.3.154' => 'stable',
8+
'0.4.154' => 'stable',
9+
'1.0.154' => 'stable',
10+
'2.0.172' => 'stable',
11+
'3.0.195' => 'stable',
12+
'4.0.249' => 'stable',
13+
'4.1.249' => 'stable',
14+
'5.0.375' => 'stable',
15+
'6.0.472' => 'stable',
16+
'7.0.517' => 'stable',
17+
'8.0.552' => 'stable',
18+
'9.0.597' => 'stable',
19+
'10.0.648' => 'stable',
20+
'11.0.696' => 'stable',
21+
'12.0.742' => 'stable',
22+
'13.0.782' => 'stable',
23+
'14.0.835' => 'stable',
24+
'15.0.874' => 'stable',
25+
'16.0.912' => 'stable',
26+
'17.0.963' => 'stable',
27+
'18.0.1025' => 'stable',
28+
'19.0.1084' => 'stable',
29+
'20.0.1132' => 'stable',
30+
'21.0.1180' => 'stable',
31+
'22.0.1229' => 'stable',
32+
'23.0.1271' => 'stable',
33+
'24.0.1312' => 'stable',
34+
'25.0.1364' => 'stable',
35+
'26.0.1410' => 'stable',
36+
'27.0.1453' => 'stable',
37+
'28.0.1500' => 'stable',
38+
'29.0.1547' => 'stable',
39+
'30.0.1599' => 'stable',
40+
'31.0.1650' => 'stable',
41+
'32.0.1700' => 'stable',
42+
'33.0.1750' => 'stable',
43+
'34.0.1847' => 'stable',
44+
'35.0.1916' => 'stable',
45+
'36.0.1985' => 'stable',
46+
'37.0.2062' => 'stable',
47+
'38.0.2125' => 'stable',
48+
'39.0.2171' => 'stable',
49+
'40.0.2214' => 'stable',
50+
'41.0.2272' => 'stable',
51+
'42.0.2311' => 'stable',
52+
'43.0.2357' => 'stable',
53+
'44.0.2403' => 'stable',
54+
'45.0.2454' => 'stable',
55+
'46.0.2490' => 'stable',
56+
];
8257

58+
Chrome::$MOBILE = [
59+
'16.0.912' => 'beta',
60+
'18.0.1025' => 'stable',
61+
'25.0.1364' => 'stable',
62+
'27.0.1453' => 'stable',
63+
'29.0.1547' => 'stable',
64+
'30.0.1599' => 'stable',
65+
'31.0.1650' => 'stable',
66+
'32.0.1700' => 'stable',
67+
'33.0.1750' => 'stable',
68+
'34.0.1847' => 'stable',
69+
'35.0.1916' => 'stable',
70+
'36.0.1985' => 'stable',
71+
'37.0.2062' => 'stable',
72+
'38.0.2125' => 'stable',
73+
'39.0.2171' => 'stable',
74+
'40.0.2214' => 'stable',
75+
'41.0.2272' => 'stable',
76+
'42.0.2311' => 'stable',
77+
'43.0.2357' => 'stable',
78+
'44.0.2403' => 'stable',
79+
'45.0.2454' => 'stable',
80+
'46.0.2490' => 'stable',
81+
];

0 commit comments

Comments
 (0)