Download the PHP package poowaa/browser-detect-standalone without Composer
On this page you can find all versions of the php package poowaa/browser-detect-standalone. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download poowaa/browser-detect-standalone
More information about poowaa/browser-detect-standalone
Files in poowaa/browser-detect-standalone
Package browser-detect-standalone
Short Description Browser & Mobile detection package standalone PHP based on hisorange/browser-detect.
License MIT
Homepage https://github.com/PoOwAa/browser-detect-standalone
Informations about the package browser-detect-standalone
Standalone PHP Browser Detection based on hisorange/browser-detect
Easy to use package to identify the user's browser details and device type. Magic is not involved the results are generated by multiple well tested and developed packages. Supporting every release PHP between 5.6 » 7.2.
How to install
Yep, that's it!
How to use
If you want to use the user's browser, then simply use the Browser class:
If you want to handle custom useragent, then use the Parser class:
Available API calls
Every call on the Browser object is mirrored to the result object, so the following informations are available on your result too, where you can use the array syntax to access them.
Call | Response | Internal Type |
---|---|---|
Browser::userAgent() | Current visitor's HTTP_USER_AGENT string. | (string) |
Browser::isMobile() | Is this a mobile device. | (boolean) |
Browser::isTablet() | Is this a tablet device. | (boolean) |
Browser::isDesktop() | Is this a desktop computer. | (boolean) |
Browser::isBot() | Is this a crawler / bot. | (boolean) |
Browser related functions | ||
Browser::browserName() | Browser's human friendly name like Firefox 3.6, Chrome 42. | (string) |
Browser::browserFamily() | Browser's vendor like Chrome, Firefox, Opera. | (string) |
Browser::browserVersion() | Browser's human friendly version string. | (string) |
Browser::browserVersionMajor() | Browser's semantic major version. | (integer) |
Browser::browserVersionMinor() | Browser's semantic minor version. | (integer) |
Browser::browserVersionPatch() | Browser's semantic patch version. | (integer) |
Browser::browserEngine() | Browser's engine like: Blink, WebKit, Gecko. | (string) |
Operating system related functions | ||
Browser::platformName() | Operating system's human friendly name like Windows XP, MacOS 10. | (string) |
Browser::platformFamily() | Operating system's vendor like Linux, Windows, MacOS. | (string) |
Browser::platformVersion() | Operating system's human friendly version like XP, Vista, 10. | (integer) |
Browser::platformVersionMajor() | Operating system's semantic major version. | (integer) |
Browser::platformVersionMinor() | Operating system's semantic minor version. | (integer) |
Browser::platformVersionPatch() | Operating system's semantic patch version. | (integer) |
Device related functions | ||
Browser::deviceFamily() | Device's vendor like Samsung, Apple, Huawei. | (string) |
Browser::deviceModel() | Device's brand name like iPad, iPhone, Nexus. | (string) |
Browser::mobileGrade() | Device's mobile grade in scale of A,B,C for performance. | (string) |
Browser vendor related functions | ||
Browser::isChrome() | Is this a chrome browser. | (boolean) |
Browser::isFirefox() | Is this a firefox browser. | (boolean) |
Browser::isOpera() | Is this an opera browser. | (boolean) |
Browser::isSafari() | Is this a safari browser. | (boolean) |
Browser::isIE() | Checks if the browser is an some kind of Internet Explorer (or Trident) | (boolean) |
Browser::isIEVersion() | Compares to a given IE version | (boolean) |
Browser::isEdge() | Is this a microsoft edge browser. | (boolean) |
All versions of browser-detect-standalone with dependencies
ua-parser/uap-php Version ~3.8
league/pipeline Version ~0.1
mobiledetect/mobiledetectlib Version ~2.0
jaybizzle/crawler-detect Version ~1.0
piwik/device-detector Version ~3.0