How to detect device using PHP

Detect mobile

With more requirement of responsive websites it a basic requirement to detect device and browser of user accessing website. Here is an opensource class in PHP to detect device as well OS/browser and other features including tablets.

Plugins of this class are also available for WordPress, Joomla, Magento.

Demo:
http://demo.mobiledetect.net

Download:
http://mobiledetect.net

If you don’t wish to go much into code and need a quick solution, an alternate can also be:

[code]

[/code]

Thanks to an unknown author for above quick fix. : )

Deepak Sihag

Deepak is a Technical consultant, working on web since last 12 years. He excels in Microsoft .Net, OpenSource (mainly WordPress customization & plugin development) as well love working with CRM. He has been working with startups to listed companies and help them to build their online presence and reach target audience.

More Posts - Twitter - LinkedIn