PHPackages                             wallrio/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. [Caching](/categories/caching)
4. /
5. wallrio/instafeed

ActiveLibrary[Caching](/categories/caching)

wallrio/instafeed
=================

captures instagram user posts

0.0.3(7y ago)013MITPHP

Since Nov 16Pushed 7y ago1 watchersCompare

[ Source](https://github.com/wallrio/instafeed)[ Packagist](https://packagist.org/packages/wallrio/instafeed)[ Docs](http://wallrio.com)[ RSS](/packages/wallrio-instafeed/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

instaFeed
=========

[](#instafeed)

captures instagram user posts

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

[](#installation)

It's recommended that you use [Composer](https://getcomposer.org/) to install Directly.

```
$ composer require wallrio/instafeed "*"
```

Usage
-----

[](#usage)

### Capture data from account

[](#capture-data-from-account)

To capture information and publications from a user use the Profile class with the get

- $profile-&gt;username(USERNAME\_OF\_USER);
- $profile-&gt;get(CALLBACK\_OPTIONAL);

#### Example

[](#example)

```
	use InstaFeed\Profile as Profile;
	$profile = new Profile();

	$profile->username('wallace.rio');
	$instaData = $profile->get();

	print_r($instaData);

```

### Use cache

[](#use-cache)

- $profile-&gt;useCache = true;
- $profile-&gt;cache-&gt;dir(DIRECTORY\_OF\_CACHE); (optional)

if method '$profile-&gt;cache-&gt;dir' is omitted, the directory will be the temporary directory (/tmp/instaFeed).

```
use InstaFeed\Profile as Profile;
$profile = new Profile();

$profile->useCache = true;
$profile->cache->dir(__DIR__DIRECTORY_SEPARATOR.'cache'.DIRECTORY_SEPARATOR);

$profile->username('wallace.rio');
$instaData = $profile->get();

```

### run callback if instagram feed has updated

[](#run-callback-if-instagram-feed-has-updated)

```
use InstaFeed\Profile as Profile;
$profile = new Profile();

$profile->useCache = true;

$profile->username('wallace.rio');
$instaData = $profile->get(function(){
	// code to run if instagram feed has updated
});

```

### Clean cache

[](#clean-cache)

- $profile-&gt;cache-&gt;clear(TIME\_TO\_CLEAN);
- TIME\_TO\_CLEAN: is optional and allows as string or integer value.

    - integer: the integer will be defined per second.
    - string: enter a number and a letter referring to the specification of days, hours, minutes, and seconds.

#### Example of time:

[](#example-of-time)

```
	$profile->cache->clear('30m');		// 30 minutes
	$profile->cache->clear('2d');		// 2 days
	$profile->cache->clear('5h');		// 5 hours

```

#### Example implementation:

[](#example-implementation)

```
use InstaFeed\Profile as Profile;
$profile = new Profile();

$profile->useCache = true;
$profile->cache->dir(__DIR__DIRECTORY_SEPARATOR.'cache'.DIRECTORY_SEPARATOR);
$profile->cache->clear();

$profile->username('wallace.rio');
$instaData = $profile->get();

```

License
-------

[](#license)

The instaFeed is licensed under the MIT license. See [License File](LICENSE) for more information.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

Total

2

Last Release

2731d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8528598?v=4)[Wallace Rio](/maintainers/wallrio)[@wallrio](https://github.com/wallrio)

---

Top Contributors

[![wallrio](https://avatars.githubusercontent.com/u/8528598?v=4)](https://github.com/wallrio "wallrio (5 commits)")

---

Tags

instagramusercacheposts

### Embed Badge

![Health badge](/badges/wallrio-instafeed/health.svg)

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

###  Alternatives

[psr/simple-cache

Common interfaces for simple caching

8.1k727.3M2.1k](/packages/psr-simple-cache)[psr/cache

Common interface for caching libraries

5.2k686.9M1.3k](/packages/psr-cache)[react/cache

Async, Promise-based cache interface for ReactPHP

444112.4M40](/packages/react-cache)[beste/in-memory-cache

A PSR-6 In-Memory cache that can be used as a fallback implementation and/or in tests.

2512.2M6](/packages/beste-in-memory-cache)[anahkiasen/flatten

A package for the Illuminate framework that flattens pages to plain HTML

33313.0k](/packages/anahkiasen-flatten)[rtcamp/nginx-helper

Cleans nginx's fastcgi/proxy cache or redis-cache whenever a post is edited/published. Also provides cloudflare edge cache purging with Cache-Tags.

23817.0k1](/packages/rtcamp-nginx-helper)

PHPackages © 2026

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