PHP code example of 9gag-open-source / mobiledetect-varnish

1. Go to this page and download the library: Download 9gag-open-source/mobiledetect-varnish 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/ */

    

9gag-open-source / mobiledetect-varnish example snippets


$generator = new \Detection\MobileDetect\Varnish\DeviceDetect();
echo $generator->generateVcl();