PHP code example of offset / utils
1. Go to this page and download the library: Download offset/utils 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/ */
offset / utils example snippets
use Offset\Utils;
// Media Utilities
$media_id = 7;
Utils\Media::isImage($media_id);
Utils\Media::isVideo($media_id);
Utils\Media::getImageSizes($media_id);