PHP code example of zyanez / user-tracker

1. Go to this page and download the library: Download zyanez/user-tracker 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/ */

    

zyanez / user-tracker example snippets


  use Zyanez\UserTracker\UserTracker;
  

$userTracker = new UserTracker();

$browser = $userTracker->getUserBrowser();

$os = $userTracker->getUserOS();

$deviceType = $userTracker->getUserDevice();

$language = $userTracker->getUserLanguage();