PHP code example of diego182 / mobile-detect

1. Go to this page and download the library: Download diego182/mobile-detect 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/ */

    

diego182 / mobile-detect example snippets




namespace App\Service;

use diego182\MobileDetectBundle\Service\MobileDetect;

class MyService
{
    private MobileDetect $mobileDetect;
    
    public function __construct(MobileDetect $mobileDetect) {
        $this->mobileDetect = $mobileDetect;
    }
}