PHP code example of unicodeveloper / laravel-identify
1. Go to this page and download the library: Download unicodeveloper/laravel-identify 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/ */
unicodeveloper / laravel-identify example snippets
/**
* Gets the version of the user's browser
* @return string
*/
Identify::browser()->getVersion()
/**
* Gets the name of the user's browser
* @return string
*/
Identify::browser()->getName()
/**
* Gets the version of the user's Operating System
* @return string
*/
Identify::os()->getVersion()
/**
* Gets the name of the user's Operating System
* @return string
*/
Identify::os()->getName()
/**
* Gets the name of the user's device
* @return string
*/
Identify::device()->getName()
/**
* Gets the language that the user's browser contents are displayed in
* @return string
*/
Identify::lang()->getLanguage()