2017 © Pedro Peláez
 

library yii2-user-agent

yii2-user-agent

image

xj/yii2-user-agent

yii2-user-agent

  • Wednesday, August 19, 2015
  • by xjflyttp
  • Repository
  • 1 Watchers
  • 2 Stars
  • 836 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 19 % Grown

The README.md

yii2-user-agent

https://github.com/donatj/PhpUserAgent

composer.json

"require": {
    "xj/yii2-user-agent": "~1.0.0"
}

Usage

//A
var_dump(\xj\ua\UserAgent::model()->getAttributes());

//B
$userAgent = \xj\ua\UserAgent::model();
/* @var \xj\ua\UserAgent $userAgent */
$platform = $userAgent->platform;
$browser = $userAgent->browser;
$version = $userAgent->version;
$uaAttributes =  $userAgent->getAttributes(); // OR $userAgent->attributes
var_dump($platform, $browser, $version, $uaAttributes);

The Versions

19/08 2015

dev-master

9999999-dev

yii2-user-agent

  Sources   Download

BSD-3-Clause

The Requires

 

by Avatar xjflyttp

19/08 2015

1.0.0

1.0.0.0

yii2-user-agent

  Sources   Download

BSD-3-Clause

The Requires

 

by Avatar xjflyttp