JayBizzle / Crawler-Detect

🕷 CrawlerDetect is a PHP class for detecting bots/crawlers/spiders via the user agent
https://crawlerdetect.io
MIT License
1.93k stars 254 forks source link

Add getUserAgent() #489

Closed tn3rb closed 1 year ago

tn3rb commented 1 year ago

Since you've already done an excellant job of detecting the user agent, it would be great to be able to retreive that bit of information for use elsewhere.

Thanks for all of your time, effort, and talent that has been put into this project.

JayBizzle commented 1 year ago

Sorry, I missed this PR. Looks good, I have remove the return type to maintain PHP 5.3 and up compatibility for now.

❤️