PHP code example of uiarts / responsive-images

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

    

uiarts / responsive-images example snippets


$options = [
    'picture_title' => 'Image',
    'size_pc' => '380, auto',
    'size_tablet' => '354, auto',
    'size_mobile' => '290, auto',
    'mode' => 'fit-x',
    'lazyload' => false,
//    'driver' => 'public_path',
     'image_attributes' => [
        'param' => 'value'
     ]
];

\UIArts\ResponsiveImages\Facades\ResponsiveImages::generate('image.jpg', $options)