PHP code example of afxsoft / phpimagecache
1. Go to this page and download the library: Download afxsoft/phpimagecache 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/ */
afxsoft / phpimagecache example snippets
bash
agecache = new Afxsoft\App\ImageCache();
bash
$cached_src = $imagecache->cache( 'images/unsplash1.jpeg' );
/// <!-- later in your HTML -->
<img src=" echo $cached_src;