PHPackages                             iliain/silverstripe-insta - 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. iliain/silverstripe-insta

AbandonedArchivedSilverstripe-vendormodule

iliain/silverstripe-insta
=========================

Provides Instagram login code and feed collector for Silverstripe

2.0.1(3y ago)023BSD-3-ClausePHPPHP ^7

Since Jul 29Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Iliain/silverstripe-insta)[ Packagist](https://packagist.org/packages/iliain/silverstripe-insta)[ Docs](http://github.com/Iliain/silverstripe-insta)[ RSS](/packages/iliain-silverstripe-insta/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (8)Dependencies (1)Versions (11)Used By (0)

Silverstripe Instagram
======================

[](#silverstripe-instagram)

Code for Silverstripe that interacts with the Express auth app. This is designed to query [the app found here](https://github.com/Iliain/insta-auth) and will not function without it. The code is designed to provide a login link, store incoming tokens, and use said tokens to request feed information from the Basic Display API, nothing more.

Installation (with composer)
----------------------------

[](#installation-with-composer)

```
composer require iliain/silverstripe-insta

```

Config
------

[](#config)

You'll need to define the following variables in your config:

```
Instagram:
  auth_handler_url: 'https://locationofauthhandler.app'
  cache_file: 'filename.txt'

```

`auth_handler_url` is used to define the URL where the auth app is located, while `cache_file` simply determines the name assigned to the local cache file for the feed.

Usage
-----

[](#usage)

Once configured, the code will add a new section to the site Settings in the CMS. Users can use this to log in and authorise an account, which will then store an access token. From here, you can then use the InstagramCacheTask to query the Basic Display API for you and retrieve some posts, which will then be stored in a local file in the public directory. A limit can be included, but is optional.

```
Frontend: mysite.com/dev/tasks/set-instagram-cache?limit=5
Backend:  sake dev/tasks/set-instagram-cache "limit=5"

```

You can use code like the following example to pull this data into the frontend:

```
public function getInstagramFeed()
{
	$path = Config::inst()->get('Instagram', 'cache_file');
	$cache = file_get_contents($path);
	return unserialize($cache);
}

```

The fields available to display are the following:

- ID
- Username
- Caption (stored as a Text DBField)
- Link
- Image (returns thumbnail\_url if present, defaults to media\_url if not)
- Timestamp (stored as a Datetime DBField)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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.

###  Release Activity

Cadence

Every ~29 days

Recently: every ~65 days

Total

10

Last Release

1125d ago

Major Versions

1.0.7 → 2.0.02023-01-18

### Community

Maintainers

![](https://www.gravatar.com/avatar/95555999d61957aa18a23d42afe8bcf7aad3a5e6d9dcc8c7e41ba183f405e49e?d=identicon)[iliain](/maintainers/iliain)

---

Top Contributors

[![Iliain](https://avatars.githubusercontent.com/u/2579262?v=4)](https://github.com/Iliain "Iliain (32 commits)")

---

Tags

instagramsilverstripecmsmodular

### Embed Badge

![Health badge](/badges/iliain-silverstripe-insta/health.svg)

```
[![Health](https://phpackages.com/badges/iliain-silverstripe-insta/health.svg)](https://phpackages.com/packages/iliain-silverstripe-insta)
```

###  Alternatives

[silverstripe/cms

The SilverStripe Content Management System

5163.4M1.3k](/packages/silverstripe-cms)

PHPackages © 2026

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