PHPackages                             nirvana-msu/yii2-instafeed - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. nirvana-msu/yii2-instafeed

AbandonedArchivedYii2-extension[Utility &amp; Helpers](/categories/utility)

nirvana-msu/yii2-instafeed
==========================

Yii2 extension for instafeed Instagram javascript plugin

41.3k3[1 issues](https://github.com/nirvana-msu/yii2-instafeed/issues)[1 PRs](https://github.com/nirvana-msu/yii2-instafeed/pulls)PHP

Since Jul 29Pushed 4y ago1 watchersCompare

[ Source](https://github.com/nirvana-msu/yii2-instafeed)[ Packagist](https://packagist.org/packages/nirvana-msu/yii2-instafeed)[ RSS](/packages/nirvana-msu-yii2-instafeed/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

yii2-instafeed
==============

[](#yii2-instafeed)

Yii2 extension for [instafeed](https://github.com/stevenschobert/instafeed.js) Instagram javascript plugin, providing a simple way to add Instagram photos to your website.

This widget publishes assets and registers necessary code to run plugin. It also optionally renders a div container that plugin would automatically look for, to fill with thumbnails. You can control the name of a created javascript plugin variable by configuring widget id.

Resources
---------

[](#resources)

- Yii2 [extension page](http://www.yiiframework.com/extension/yii2-instafeed)
- Instafeed javascript plugin [documentation](https://github.com/stevenschobert/instafeed.js)

Installation
------------

[](#installation)

### Composer

[](#composer)

Add extension to your `composer.json` and update your dependencies as usual, e.g. by running `composer update`

```
{
    "require": {
        "nirvana-msu/yii2-instafeed": "1.0.*@dev"
    }
}
```

\##Widget Configuration

- $renderThumbnailDiv *boolean* whether to render `` container that plugin would look for by default
- $pluginOptions *array* instafeed javascript plugin options. For more information refer to instafeed [documentation](https://github.com/stevenschobert/instafeed.js)

\##Sample Usage

The only thing you have to configure are plugin option. For example, to fetch images from your account, set the `get`, `userId` and `accessToken` options:

```
echo Instafeed::widget([
    'pluginOptions' => [
        'get' => 'user',
        'userId' => 'YOUR_USER_ID',     // your Instagram account id, not username!
        'accessToken' => 'YOUR_ACCESS_TOKEN',
    ],
]);
```

If, for convenience, you prefer to store application-wide configuration such as access token(s), client id(s) and user id(s) in an application component, you may find `InstafeedConfig` class useful, for example:

In an application config:

```
'components' => [
    'instafeedConfig' => [
        'class' => InstafeedConfig::className(),
        'userId' => 'YOUR_USER_ID',
        'accessToken' => 'YOUR_ACCESS_TOKEN',
    ],
],
```

In a view:

```
$config = Yii::$app->instafeedConfig;
echo Instafeed::widget([
    'pluginOptions' => [
        'get' => 'user',
        'userId' => $config->userId,
        'accessToken' => $config->accessToken,
    ],
]);
```

\##License

Extension is released under MIT license.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a1a5dd972c2dcc6866be80df680b326649a14e85dd1586af5a8fbf46e9471d0c?d=identicon)[nirvana-msu](/maintainers/nirvana-msu)

---

Top Contributors

[![nirvana-msu](https://avatars.githubusercontent.com/u/5787387?v=4)](https://github.com/nirvana-msu "nirvana-msu (2 commits)")

### Embed Badge

![Health badge](/badges/nirvana-msu-yii2-instafeed/health.svg)

```
[![Health](https://phpackages.com/badges/nirvana-msu-yii2-instafeed/health.svg)](https://phpackages.com/packages/nirvana-msu-yii2-instafeed)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
