PHP code example of lablnet / userinfo

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

    

lablnet / userinfo example snippets




use Lablnet\UserInfo;

Name = $info->operatingSystem();
$osVersion = $info->osVersion();
$browserName = $info->browser()['browser'];
$browserVersion = $info->browserVersion();
$ip = $info->ip();

$data = [
    'Operating System Name'    => $osName,
    'Operating System Version' => $osVersion,
    'Browser Name'             => $browserName,
    'Browser Version'          => $browserVersion,
    'Ip address'               => $ip,
];
var_dump($data);