PHP code example of mhe / silverstripe-responsiveimages

1. Go to this page and download the library: Download mhe/silverstripe-responsiveimages 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/ */

    

mhe / silverstripe-responsiveimages example snippets


SilverStripe\Assets\InterventionBackend:
    flush_enabled: true

/** @var \SilverStripe\Assets\Image $image */
$variant = $image->Rendering(['cssclass' => 'maxsteps_90vw']);
$variant->Srcset();