PHP code example of weizhang / utilities
1. Go to this page and download the library: Download weizhang/utilities 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/ */
weizhang / utilities example snippets
deviceCheck = new DeviceCheck();
$deviceCheck->setServerVar($_SERVER);
$isMobile = $deviceCheck->isMobile();
$file = new Requests();
$size = $file->getDownloadSize(['https://filepath.com']); // size returns is in bytes