michaeldomo / yii2-instagram-widget
Yii2 instagram widget.
Installs: 120
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 2
Forks: 1
Open Issues: 1
Language:CSS
Type:yii2-extension
Requires
- yiisoft/yii2-httpclient: @dev
Requires (Dev)
- phpunit/phpunit: 4.*
This package is auto-updated.
Last update: 2024-05-28 21:39:18 UTC
README
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).
Installation:
composer require michaeldomo/yii2-instagram-widget "dev-master"
or add in require section in composer.json
"michaeldomo/yii2-instagram-widget": "dev-master"
How to use
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,
]);