PHP code example of kmarenov / yii2-instagram-widget
1. Go to this page and download the library: Download kmarenov/yii2-instagram-widget 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/ */
kmarenov / yii2-instagram-widget example snippets
<?= \kmarenov\instagram\InstagramWidget::widget([
'clientId' => '<your-instagram-client-id>',
'userName' => 'shnurovs'
]);
<?= \kmarenov\instagram\InstagramWidget::widget([
'clientId' => '<your-instagram-client-id>',
'tag' => 'cat'
]);
<?= \kmarenov\instagram\InstagramWidget::widget([
'clientId' => '<your-instagram-client-id>',
'userName' => 'shnurovs'
]);
<?= \kmarenov\instagram\InstagramWidget::widget([
'clientId' => '<your-instagram-client-id>',
'userName' => 'shnurovs',
'isShowToolbar' => false
]);
<?= \kmarenov\instagram\InstagramWidget::widget([
'clientId' => '<your-instagram-client-id>',
'userName' => 'shnurovs',
'isShowToolbar' => false,
'width' => 100,
'inline' => 2
]);
<?= \kmarenov\instagram\InstagramWidget::widget([
'clientId' => '<your-instagram-client-id>',
'userName' => 'shnurovs',
'isShowToolbar' => false,
'width' => 100,
'inline' => 1,
'count' => 3
]);
<?= \kmarenov\instagram\InstagramWidget::widget([
'clientId' => '<your-instagram-client-id>',
'userName' => 'shnurovs',
'isShowToolbar' => false,
'width' => 800,
'inline' => 7,
'count' => 14
]);
<?= \kmarenov\instagram\InstagramWidget::widget([
'clientId' => '<your-instagram-client-id>',
'userName' => 'shnurovs',
'isShowToolbar' => false,
'width' => 800,
'inline' => 3,
'count' => 9,
'imgRes' => 'low_resolution'
]);
php composer.phar