Skip to content

daniloercoli/php-mobile-useragent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Mobile User Agent

Mobile Browser detection in PHP. Uses a simple and fast algorithm to recognize major mobile browsers or platform.

Overview

$ua = new UserAgentInfo();

$ua->get_mobile_user_agent_name()  //returns the mobile User Agent name, false otherwise.
$ua->get_platform()  //returns the mobile device's platform, false otherwise. All return strings are from the class constants.

Contribute

If you found a mobile browser or platform this library fails to recognize, feel free to submit an issue. Please provide the user agent string. And well, if you also want to provide the patch, it's even better.

About

Mobile User Agent Detection in PHP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages