This is an extremely complicated and almost completely useless browser-sniffing library. Useless because you shouldn't use browser sniffing. So stop right now and go read something about feature detecting instead. I'm serious. Go away. You'll thank me later. There is always an exception to the rule. There are valid reasons to do browser sniffing: to improve the user experience or to gather intelligence about which browsers are used on your website. My website is html5test.com and I wanted to know which score belongs to which browser. To do that you need a browser sniffing library. Almost all browsers say they are Netscape 5 and almost all WebKit browsers say they are based on Gecko. Even Internet Explorer 11 now no longer claims to be IE at all, but instead, an unnamed browser that is like Gecko. And it gets worse. That is why it is complicated.
Features
- WhichBrowser requires with PHP 7.0 or higher and supports PHP 8
- Documentation available
- You can easily update WhichBrowser by running a simple command
- It is possible to set additional options by passing an array as the second parameter when creating the Parser object
- Disable detection of bots
- Examples available
- Enable result caching