Works as any other detection script by sniffing the visitor's UA (user-agent) string for various details.
Because it's written in PHP it additionally uses HTTP header sniffing techniques as well for better results.
Mobile_Detect performs some simple checks and provides a set of results which can then be used by other apps or libraries to redirect the user to a new URL, serve him proper files according to his device type, etc..
A small demo is included with the download package.
What is new in this release:
- Added the documentation link.
What is new in version 2.8.17:
- Added the documentation link.
What is new in version 2.8.15:
- Added the documentation link.
What is new in version 2.8.13:
- White space fix.
- Exported JSON with the new rules.
What is new in version 2.8.12:
- White space fix.
- Exported JSON with the new rules.
What is new in version 2.8.0:
- Added bunch of tablets from minor brands.
What is new in version 2.7.7:
- Added Trekstor, PyleAudio, Advan, DanyTech, Yarvik tablets based on the feedback received and research.
What is new in version 2.7.4:
- Moved the JSON export to the root of the project.
- Minor path correction, now export works from command line.
What is new in version 2.7.1:
- Updated the JSON with tests.
What is new in version 2.7.0:
- New 3rd party projects added to the list.
What is new in version 2.6.9:
- Archos regex fixes.
- New Samsung devices.
- New tests.
What is new in version 2.6.8:
- New tablets (AllFine, YONES, ChangJia, Telstra) and lots of old bugs fixed.
- New tests for the new devices (tablets mainly).
- Changed getUserAgents to getBrowsers.
What is new in version 2.6.3:
- New tablets, requests from users, typos.
What is new in version 2.6.2:
- Corrected regex for Windows devices, various fixes, new Sony tablets.
What is new in version 2.5.9:
- Improved example.
What is new in version 2.5.7:
- Added new Blackberry 10 support and couple of UAs for tests.
What is new in version 2.5.5:
- Added Nabi Tablets support.
- Prioritized some tablet regexes.
Requirements:
- PHP 5 or higher
Comments not found