PHP User Agent is available through Packagist via Composer.
The classic procedural use is as simple as: The new object-oriented wrapper form:
[!NOTE] > There is overlap between browsers and bots. Before bots were given their own separate class, a number were added to the browser list. > They appear in both lists for backward compatibility. This is likely to be remedied should there be a future major release.]]>