mirror of
https://github.com/matomo-org/matomo-icons.git
synced 2024-09-19 17:03:45 +02:00
14 lines
370 B
PHP
14 lines
370 B
PHP
|
<?php
|
||
|
|
||
|
require_once "vendor/autoload.php";
|
||
|
|
||
|
$brands = \DeviceDetector\Parser\Device\DeviceParserAbstract::$deviceBrands;
|
||
|
natcasesort($brands);
|
||
|
|
||
|
$data = [
|
||
|
"os" => \DeviceDetector\Parser\OperatingSystem::getAvailableOperatingSystems(),
|
||
|
"browsers" => \DeviceDetector\Parser\Client\Browser::getAvailableBrowsers(),
|
||
|
"brand" => $brands
|
||
|
];
|
||
|
|
||
|
echo json_encode($data);
|