donatj / PhpUserAgent

Lightning Fast, Minimalist PHP User Agent String Parser.
https://donatstudios.com/PHP-Parser-HTTP_USER_AGENT
MIT License
565 stars 127 forks source link

object mode #91

Closed fernandosngular closed 1 year ago

fernandosngular commented 1 year ago

use donatj\UserAgent\UserAgentParser;

not working, is namespace definition right?

donatj commented 1 year ago

The use is correct. It's useful when opening a ticket to provide context of what you are doing.

Are you using composer? Did you require the composer autoloader?

donatj commented 1 year ago

I've updated the example/README to show how to use composer if you are using composer.

fernandosngular commented 1 year ago

It is perfect