PHP code example of faboslav / yii2-progressive-media

1. Go to this page and download the library: Download faboslav/yii2-progressive-media 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/ */

    

faboslav / yii2-progressive-media example snippets


\faboslav\progressivemedia\ProgressiveMediaAssetBundle::register(\Yii::$app->view);

echo \faboslav\progressivemedia\ProgressiveMediaHelper::img($imageUrl, $placeholderImgUrl, $width, $height, $options);

echo \faboslav\progressivemedia\ProgressiveMediaHelper::iframe($iframeSrc, $width, $height, $options);

php composer