Skip to content

zeckdude/PhpUserAgent

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP User Agent Parser

Latest Stable Version Build Status

A Super Simple User Agent Parser

More information available at Donat Studios.

Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php

Requirements

  • PHP 5.3.0+

Installing

SimpleCalendar is available through Packagist via Composer.

"require": {
	"donatj/phpuseragentparser": "*"
}

Sample Usage

$ua_info = parse_user_agent();
/*
array(
	'platform' => '[Detected Platform]',
	'browser'  => '[Detected Browser]',
	'version'  => '[Detected Browser Version]',
);
*/

Currently Detected Platforms

  • Desktop
    • Windows
    • Linux
    • Macintosh
    • Chrome OS
  • Mobile
    • Android
    • iPhone
    • iPad
    • Windows Phone OS
    • Kindle
    • Kindle Fire
    • BlackBerry
    • Playbook
  • Console
    • Nintendo 3DS
    • Nintendo Wii
    • Nintendo WiiU
    • PlayStation 3
    • PlayStation Vita
    • Xbox 360

Currently Detected Browsers

  • BlackBerry Browser
  • Camino
  • Kindle / Silk
  • Firefox
  • Safari
  • Internet Explorer
  • IEMobile
  • Chrome
  • Opera
  • Silk
  • Lynx
  • Wget
  • Curl

About

A Super Simple, Streamline PHP User Agent Detection / Parsing Function

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%