first commit
This commit is contained in:
13
vendor/donatj/phpuseragentparser/bin/init_user_agent.php
vendored
Normal file
13
vendor/donatj/phpuseragentparser/bin/init_user_agent.php
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
require(__DIR__ . '/../vendor/autoload.php');
|
||||
|
||||
$jsonfile = __DIR__ . '/../Tests/user_agents.json';
|
||||
|
||||
$uas = json_decode(file_get_contents($jsonfile), true);
|
||||
|
||||
foreach( $uas as $key => &$val ) {
|
||||
$val = parse_user_agent($key);
|
||||
}
|
||||
|
||||
echo json_encode($uas);
|
Reference in New Issue
Block a user