CodeIgniter Forums
User Agent Library - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Feature Requests (https://forum.codeigniter.com/forumdisplay.php?fid=29)
+--- Thread: User Agent Library (/showthread.php?tid=70008)



User Agent Library - natanfelles - 02-08-2018

Import of  CI 3 User Agent.

Similar: https://github.com/sinergi/php-browser-detector


RE: User Agent Library - ciadmin - 02-08-2018

Hmmm - sounds like much of this is already in https://bcit-ci.github.io/CodeIgniter4/libraries/incomingrequest.html

Are you suggested it could/should be beefed up?


RE: User Agent Library - natanfelles - 02-08-2018

Yes, Sir. To can get more specific details, like on CI 3 platform(), browser(), is_robot(), etc.

Maybe return this infos with the getUserAgent. Having a boolean param to get an array with User Agent parts or a string with the full User Agent as is now.


RE: User Agent Library - kilishan - 02-11-2018

Good catch, natanfelles. Ported it over tonight - but still needs docs.

url: https://github.com/bcit-ci/CodeIgniter4/tree/useragent


RE: User Agent Library - natanfelles - 02-13-2018

That Cool. Thank you! Smile