PHP code example of kvnc / cache-images

1. Go to this page and download the library: Download kvnc/cache-images 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/ */

    

kvnc / cache-images example snippets

`
     php artisan vendor:publish --provider=Kvnc\CacheImages\CacheImageProvider

function getResizedImageUrl($filter,$module,$image_url): string
{
    $image = implode('+',explode('.',basename($image_url)));
    return route('kvnc_image_cache.cache',['filter'=>$filter,'module' => $module, 'filename'=> $image]);
}