for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Unicodeveloper\Identify;
use Sinergi\BrowserDetector\{ Os, Device, Browser, Language };
class Identify {
/**
* Store the os object
* @var object
*/
protected $os;
* Store the device object
protected $device;
* Store the browser object
protected $browser;
* Store the language object
protected $language;
* Create an Instance of Browser and Os
public function __construct()
{
$this->os = new Os();
$this->device = new Device();
$this->browser = new Browser();
$this->language = new Language();
}
* Get all the methods applicable to Os detection
* e.g getName(), getVersion()
* @return \Sinergi\BrowserDetector\Os
public function os() : Os
return $this->os;
* Get all the methods applicable to Device detection
* e.g getName()
* @return \Sinergi\BrowserDetector\Device
public function device() : Device
return $this->device;
* Get all the methods applicable to Browser detection
* @return \Sinergi\BrowserDetector\Browser
public function browser() : Browser
return $this->browser;
* Get all the methods applicable to Language detection
* e.g getLanguage()
* @return \Sinergi\BrowserDetector\Language
public function lang() : Language
return $this->language;