PHP code example of osumionline / plugin-browser
1. Go to this page and download the library: Download osumionline/plugin-browser library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
osumionline / plugin-browser example snippets
$browser = new OBrowser();
$browser->setUA( $_SERVER['HTTP_USER_AGENT'] );
if ($browser->isIpad()) {
echo "Dispositivo iPad detectado.";
}
if ($browser->isMobile()) {
echo "Navegador movil detectado.";
}