PHP code example of goktugceyhan / device-detector
1. Go to this page and download the library: Download goktugceyhan/device-detector library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
goktugceyhan / device-detector example snippets
browser = Detector::getUserBrowser();
echo $browser; // Outputs the user's browser
$os = Detector::getUserOS();
echo $os; // Outputs the user's operating system
$device = Detector::getUserDevice();
echo $device; // Outputs the user's device type
$language = Detector::getUserLanguage();
echo $language; // Outputs the user's preferred language
$userInfo = Detector::getUserInfo();
print_r($userInfo); // Outputs an associative array of user information
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.