Yii2 instagram carousel widget
Simply implementation of instagram feed with user and limit parameters.
You can use it for getting public data from someone instagram account.
Also you can use widget(It looks like WordPress InstaShow).
composer require michaeldomo/yii2-instagram-widget "dev-master"
or add in require section in composer.json
"michaeldomo/yii2-instagram-widget": "dev-master"
Simply usage in Yii2:
Get feed public data:
use michaeldomo\instashow\Instagram;
$instagram = Yii::createObject(Instagram::class);
//or $instagram = new Instagram();
//There store all public data about user feed posts
//Get from https://www.instagram.com/{user}/media
$items = $instagram->get($channel, $limit);
//you can check data just print all
print_r($items);
Simply usage of widget:
use app\widgets\InstagramWidget;
echo InstagramWidget::widget([
'channel' => 'zuch',
'limit' => 22,
]);