https://bitbucket.org/Chathula/php-mobile-detector

Checkout PHP Mobile Detector!!!