OSF simple device detection and manipulations
A MobileDetect proxy.
You need at least php 7.1 and
sudo apt install composer
This is the recommended way to use this feature in a non-osf project.
osflab/device in your composer.json file.
To test the component or participate in its development.
git clone https://github.com/osflab/device.git cd device && composer update
Unit tests launch: