PHPackages                             alterebro/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. alterebro/instagram-feed

ActiveLibrary[API Development](/categories/api)

alterebro/instagram-feed
========================

Access the latest Instagram posts without using OAuth, Tokens or APIs

v0.1.4(5y ago)123MITPHPPHP &gt;=5.5.3

Since Oct 18Pushed 5y ago1 watchersCompare

[ Source](https://github.com/alterebro/instagram-feed)[ Packagist](https://packagist.org/packages/alterebro/instagram-feed)[ Docs](https://github.com/alterebro/instagram-feed)[ RSS](/packages/alterebro-instagram-feed/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (5)Used By (0)

instagram-feed
==============

[](#instagram-feed)

> Get the latest pictures from an Instagram user or hashtag without OAuth credentials or access token. This is not using the Instagram API platform or Graph API so it doesn't need you to authenticate, authorise or register your application anywhere.

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

[](#installation)

```
composer require alterebro/instagram-feed

```

### How to use it

[](#how-to-use-it)

```
require __DIR__ . '/vendor/autoload.php';

use Alterebro\InstagramFeed;

$feed = new InstagramFeed(
    $query,     // i.e: "@alterebro"
    $cachePath  // i.e: __DIR__ . "/tmp/"
);
$feed->JSON();
```

#### Parameters

[](#parameters)

— **Mandatory** :

- `$query` : String starting with '@' to retrieve an username or without it to get a hashtag
- `$cachePath` : Folder where to store the data. i.e: `/tmp/` ( `chmod 777 /tmp` )

— **Optional**

- `$feedItems` : Items to retrieve. Defaults to 6 items.
- `$cacheTime` : How long does the cache lasts. Defaults to 86400 seconds (*1 day*).
- `$cacheForce` : Force to cache the data. Defaults to `false`.

```
// Retrive 10 items from user @alterebro and stores it on the /tmp/ folder for 12 hours / half day (43200 seconds)
$feed = new InstagramFeed('@alterebro', '/tmp/', 10, 43200);

// Get the data :
$data = $feed->load();

// or Output as JSON :
$feed->JSON();
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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 ~12 days

Total

4

Last Release

2001d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2c69713842d6d141c00ff2222b585d15b6267769e689f10e575b9e84fe25ff7c?d=identicon)[alterebro](/maintainers/alterebro)

---

Top Contributors

[![alterebro](https://avatars.githubusercontent.com/u/703744?v=4)](https://github.com/alterebro "alterebro (57 commits)")

---

Tags

apiinstagraminstagram-feedinstagram-scraperinstagramfeedscraperhashtag

### Embed Badge

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

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

###  Alternatives

[pgrimaud/instagram-user-feed

This is a scraper to easily fetch any feed and interact with Instagram (like, follow, etc.) without OAuth for PHP.

940657.1k5](/packages/pgrimaud-instagram-user-feed)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[facebook/php-ads-sdk

PHP SDK for Facebook Business

9014.1M8](/packages/facebook-php-ads-sdk)[cosenary/instagram

An easy-to-use PHP Class for accessing Instagram's API.

1.5k943.5k9](/packages/cosenary-instagram)[laminas/laminas-feed

provides functionality for creating and consuming RSS and Atom feeds

16749.2M47](/packages/laminas-laminas-feed)[mibe/feedwriter

Generate feeds in either RSS 1.0, RSS 2.0 or ATOM formats

1951.1M5](/packages/mibe-feedwriter)

PHPackages © 2026

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