Skip to content
Lightweight mobile device detection routine set up as a CodeIgniter library
Find file
Latest commit 9caa774 Dec 20, 2012 @weejames Merge pull request #1 from JonathanMH/master
quick addition that reminds beginners to add the spark version
Failed to load latest commit information.
config Added base config Apr 20, 2011
libraries Added base config Apr 20, 2011
README.markdown added version in spark load snipped Nov 22, 2012


Mobile Device Detection for CodeIgniter

by James Constable @weejames



This is a lightweight mobile device detection algorithm for CodeIgniter.


You can either use to install via the spark installer. Visit to install it.


  1. Extract the archive you get from here.
  2. Put libraries/mobiledetection.php into your applications libraries diectory.


If you've installed via the spark then add the following to your controller.




if you've installed manually.

From there on call the following function to determine if your visitor is using a mobile device.


True is returned if they are, otherwise false is returned.

Problems? Suggestions?

Twitter: @weejames Email: Web: GitHub:

Something went wrong with that request. Please try again.