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

Commit

Permalink
Built WhichBrowser from commit 3b014b7 on WhichBrowser/WhichBrowser o…
Browse files Browse the repository at this point in the history
…n branch dev
  • Loading branch information
NielsLeenheer committed Nov 30, 2015
1 parent 4f1f3b4 commit 2975534
Show file tree
Hide file tree
Showing 87 changed files with 32,623 additions and 30,810 deletions.
30 changes: 30 additions & 0 deletions bootstrap.php
Original file line number Diff line number Diff line change
@@ -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;
}
});
321 changes: 163 additions & 158 deletions data/browsers-bots.php

Large diffs are not rendered by default.

155 changes: 77 additions & 78 deletions data/browsers-chrome.php
Original file line number Diff line number Diff line change
@@ -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',
];
Loading

0 comments on commit 2975534

Please sign in to comment.