PHPackages                             ideato/instagram-feed - 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. [API Development](/categories/api)
4. /
5. ideato/instagram-feed

ActiveLibrary[API Development](/categories/api)

ideato/instagram-feed
=====================

Retrieve data from Instagram feed

0.0.1(8y ago)6842MITPHP

Since Oct 13Pushed 8y ago4 watchersCompare

[ Source](https://github.com/ideatosrl/instagram-feed)[ Packagist](https://packagist.org/packages/ideato/instagram-feed)[ RSS](/packages/ideato-instagram-feed/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (2)Used By (0)

Instagram Feed
==============

[](#instagram-feed)

[![Build Status](https://camo.githubusercontent.com/a31457ebb2bdc2c28495c8a3b8e4684401c1c51a0d5dc9dee9aa12fdcc84cd27/68747470733a2f2f7472617669732d63692e6f72672f69646561746f73726c2f696e7374616772616d2d666565642e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ideatosrl/instagram-feed)

Retrieve data from Instagram feed

Requirements
------------

[](#requirements)

- PHP 7.1

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

[](#installation)

```
composer require ideato/instagram-feed

```

Usage
-----

[](#usage)

InstagramFeed requires a [Guzzle HTTP Client](http://docs.guzzlephp.org/en/stable/) and an Instagram access token.

> [Here](https://elfsight.com/service/generate-instagram-access-token/) you can find a tool for generate your own instagram access token

```
    $instagramFeed = new InstagramFeed\InstagramFeed(
        new \GuzzleHttp\Client(),
        'your own access token'
    );

    $media = $instagramFeed->getMedia(); //will returns array of InstagramFeed\Model\Media objects
```

### Caching

[](#caching)

Instagram APIs come out with low rate limit. This means you have to cache responses in order to prevent errors. The library provides a [PSR-6](http://www.php-fig.org/psr/psr-6/) cache decorator with allows you to easily cache responses.

```
    $instagramFeed = new InstagramFeed\InstagramFeed(
        new \GuzzleHttp\Client(),
        'your own access token'
    );

    $instagramCachedFeed = new InstagramFeed\InstagramCachedFeed(
        new \Symfony\Component\Cache\Adapter\FilesystemAdapter(),
        $instagramFeed,
        $ttl //defaults to 600 seconds
    );

    $media = $instagramCachedFeed->getMedia(); //will returns array of InstagramFeed\Model\Media objects
```

Symfony Integration
-------------------

[](#symfony-integration)

Instagram Feed can be easily configured as a service on your Symfony application.

```
    services.yml

    parameters:
      app_instagram_access_token: 'your own token'

    services:
        #if you already defined Guzzle as service, just use yours
        app.guzzle_client:
            class: GuzzleHttp\Client

        app.instagram_feed:
            class: InstagramFeed\InstagramFeed
            arguments:
              - "@app.guzzle_client"
              - "%app_instagram_access_token%"

        app.instagram_cached_feed:
            class: InstagramFeed\InstagramCachedFeed
            arguments:
              - "@cache.app"
              - "@app.instagram_feed"
            public: true
```

Then you can retrieve posts with:

```
    $this->get('app.instagram_cached_feed')->getMedia();
```

TODO
----

[](#todo)

- add support to other api endpoints
- add support to other Instagram types (eg. video, gallery)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% 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

Unknown

Total

1

Last Release

3132d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/485213?v=4)[Simone D'Amico](/maintainers/dymissy)[@dymissy](https://github.com/dymissy)

---

Top Contributors

[![dymissy](https://avatars.githubusercontent.com/u/485213?v=4)](https://github.com/dymissy "dymissy (4 commits)")[![albertemozo](https://avatars.githubusercontent.com/u/7793176?v=4)](https://github.com/albertemozo "albertemozo (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ideato-instagram-feed/health.svg)

```
[![Health](https://phpackages.com/badges/ideato-instagram-feed/health.svg)](https://phpackages.com/packages/ideato-instagram-feed)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[commercetools/commercetools-sdk

The official PHP SDK for the commercetools Composable Commerce APIs

19281.5k](/packages/commercetools-commercetools-sdk)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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