Install
How to install and use the library
Last updated
Was this helpful?
How to install and use the library
Last updated
Was this helpful?
2.8.x
>=5.0
git checkout 2.8.x
include "Mobile_Detect.php"
3.74.x
=7.4,<8.0
git checkout 3.74.x
include "src/MobileDetect.php"
4.8.x
>=8.0
git checkout 4.8.x
composer require mobiledetect/mobiledetectlib
If you are using composer
and it's autoload, then just install it .
or manually including the library in composer.json
:
If you want to install it manually, then it's probably better to use the branch "2.8.x" or "3.74.x".
Since "4.8.x" branch, the MobileDetect library is no longer stand-alone, it requires some extra classes for Cache and Exceptions.