PHP code example of ustadev / yii2-lottie-player

1. Go to this page and download the library: Download ustadev/yii2-lottie-player 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/ */

    

ustadev / yii2-lottie-player example snippets


        use ustadev\widgets\LottiePlayer;
        echo LottiePlayer::widget([
            'src' => 'https://assets7.lottiefiles.com/packages/lf20_tmsiddoc.json',
            'options' => [
                'style' => [
                    'width' => '400px',
                ],
            ]
        ]);