Download the PHP package adspray/yzalis-ua-parser without Composer
On this page you can find all versions of the php package adspray/yzalis-ua-parser. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download adspray/yzalis-ua-parser
More information about adspray/yzalis-ua-parser
Files in adspray/yzalis-ua-parser
Download adspray/yzalis-ua-parser
More information about adspray/yzalis-ua-parser
Files in adspray/yzalis-ua-parser
Vendor adspray
Package yzalis-ua-parser
Short Description The missing UAParser PHP library.
License MIT
Package yzalis-ua-parser
Short Description The missing UAParser PHP library.
License MIT
Please rate this library. Is it a good library?
Informations about the package yzalis-ua-parser
UAParser 
UAParser is a library which helps you to parse user agents and detect browser, operating system, device and more.
Basic Usage
Results
Global Result API
$result->getBrowser()will return aUAParser\Result\BrowserResultobject$result->getOperatingSystem()will return aUAParser\Result\OperatingSystemResultobject$result->getDevice()will return aUAParser\Result\DeviceResultobject$result->getRenderingEngine()will return aUAParser\Result\RenderingEngineResultobject$result->getEmailClient()will return aUAParser\Result\EmailClientResultobject
Browser
$result->getBrowser()->getFamily()will return a string likeFirefox$result->getBrowser()->getMajor()will return an integer like23$result->getBrowser()->getMinor()will return an integer like0$result->getBrowser()->getPatch()will return an integer like1$result->getBrowser()->getVersionString()will return a string like23.0.1
Operating System
$result->getOperatingSystem()->getFamily()will return a string likeMac OS$result->getOperatingSystem()->getMajor()will return a string like10$result->getOperatingSystem()->getMinor()will return a string like8$result->getOperatingSystem()->getPatch()will return a string like4
Device
$result->getDevice()->getConstructor()will return a string likeApple$result->getDevice()->getModel()will return a string likeiPhone$result->getDevice()->getType()will return a string likemobile$result->getDevice()->isMobile()will return a boolean liketrue$result->getDevice()->isTablet()will return a boolean likefalse$result->getDevice()->isDesktop()will return a boolean likefalse$result->getDevice()->is('mobile')will return a boolean likefalse$result->getDevice()->is('tablet')will return a boolean likefalse$result->getDevice()->is('desktop')will return a boolean likefalse
EmailClient
$result->getEmailClient()->getFamily()will return a string likeThunderbird$result->getEmailClient()->getMajor()will return a string like3$result->getEmailClient()->getMinor()will return a string like1$result->getEmailClient()->getPatch()will return a string like2$result->getEmailClient()->getType()will return a string likedesktop$result->getEmailClient()->isDesktop()will return a boolean liketrue$result->getEmailClient()->isWebmail()will return a boolean likefalse$result->getEmailClient()->is('desktop')will return a boolean liketrue$result->getEmailClient()->is('webmail')will return a boolean likefalse
Rendering Engine
$result->getRenderingEngine()->getFamily()will return a string likeTrident$result->getRenderingEngine()->getVersion()will return a string like4.0
Unit Tests
To run unit tests, you'll need cURL and a set of dependencies you can install using Composer:
Once installed, just launch the following command:
You're done.
Credits
- Benjamin Laugueux [email protected]
- All contributors
Thanks for providing a huge amount of data to run tests:
License
UAParser is released under the MIT License. See the bundled LICENSE file for details.
All versions of yzalis-ua-parser with dependencies
PHP Build Version
Package Version
The package adspray/yzalis-ua-parser contains the following files
Loading the files please wait ...
