Skip to content

Latest commit

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

PHP User Agent Class

PHP User Agent Class, used for the following

  • Detect Browser and Version
  • Detect Device (mobile,tablet,desktop,bot)
  • Detect Operating System
  • User Host
  • User IP
  • Detect ISP (UK Only)
  • inludes geoip fuctions (php_goip_exstention required and installed on server)

Usage

$UA = newUserAgent; echo$UA->IP(); // returns IP if detectedecho$UA->Browser(); // returns browser name ie Chrome if detectedecho$UA->OS(); // returns Operating System of Device if detectedif($UA->isMobile()){
// if is mobile
}else{
// if is not mobile
}

About

PHP User Agent Class to help you detect Browser, Device, OS, IP, GEO Location and more.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages