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