PHPackages                             itartweb/social-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. itartweb/social-feed

ActiveLibrary[API Development](/categories/api)

itartweb/social-feed
====================

Get feeds from different social networks in a unified format

1.0.1(6y ago)0615MITPHPPHP &gt;=5.4.0

Since Aug 9Pushed 6y agoCompare

[ Source](https://github.com/itartweb/social-feed)[ Packagist](https://packagist.org/packages/itartweb/social-feed)[ RSS](/packages/itartweb-social-feed/feed)WikiDiscussions master Synced 2d ago

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

SocialFeed
==========

[](#socialfeed)

Get feeds from different social networks in a unified format

Install
-------

[](#install)

Use composer: `composer require itartweb/social-feed`

Features
--------

[](#features)

- Get the most recent posts of a user
- Get a specific item based on an ID
- Implemented media: Twitter, Facebook, Instagram
- Returns items in simple format
- Gets information (id, service, thumbnail) on attached video/images from: youtube, vine, instagram, vimeo
- Get an id from an url of a post

Example
-------

[](#example)

### Facebook

[](#facebook)

```
$feed = new SocialFeed();

// Input api credentials
$feed->facebook->setCredentials([
  'app_id' => '__',
  'app_secret' => '__'
]);

// Get all recent posts for user 'codeurs.be'
$data = $feed->facebook->getFeed('codeurs.be');
foreach ($data as $item) {
  // ...
}

// Get a single facebook post
$item = $feed->facebook->getItem('646338148755451_704084252980840');

// Get an id or item from a facebook url
$id = $feed->facebook->getIdFromUrl('https://www.facebook.com/_/photos/_/?type=1&theater');
$item = $feed->facebook->getItemFromUrl('https://www.facebook.com/_/photos/_/?type=1&theater');
```

### Output

[](#output)

Output returns the following format (as a php object; printed as json for readability):

```
{
  "service": "facebook",
  "text": "Example.",
  "link": "https://www.facebook.com/____",
  "id": "_",
  "created": 1428764403,
  "user": {
    "id": "_",
    "image": "https://graph.facebook.com/v2.3/_/picture/",
    "name": "_",
    "handle": null,
    "link": "https://facebook.com/profile.php?id=_"
  },
  "media": {
    "image": "https://graph.facebook.com/_/picture?type=normal",
    "video": null
  }
}
```

If a video is present, information will be available in media.video:

```
{
  "image": null,
  "video": {
    "service": "youtube",
    "id": "_",
    "image": "http://img.youtube.com/vi/_/hqdefault.jpg"
  }
}
```

Credentials
-----------

[](#credentials)

The following credentials are needed depending on the medium:

- Facebook: app\_id, app\_secret
- Twitter: consumer\_key, consumer\_secret, access\_token, access\_token\_secret
- Instagram: client\_id, client\_secret

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 62.5% 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 ~2 days

Total

2

Last Release

2467d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e98118092f560ce0b6042538ed9c9822b7ab90c8bf030b8774f7d6abd47bca8c?d=identicon)[itartweb](/maintainers/itartweb)

---

Top Contributors

[![benmerckx](https://avatars.githubusercontent.com/u/10584189?v=4)](https://github.com/benmerckx "benmerckx (25 commits)")[![brynj-digital](https://avatars.githubusercontent.com/u/13166627?v=4)](https://github.com/brynj-digital "brynj-digital (10 commits)")[![danjdewhurst](https://avatars.githubusercontent.com/u/25198612?v=4)](https://github.com/danjdewhurst "danjdewhurst (4 commits)")[![plopesc](https://avatars.githubusercontent.com/u/161282?v=4)](https://github.com/plopesc "plopesc (1 commits)")

---

Tags

social

### Embed Badge

![Health badge](/badges/itartweb-social-feed/health.svg)

```
[![Health](https://phpackages.com/badges/itartweb-social-feed/health.svg)](https://phpackages.com/packages/itartweb-social-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)[rezozero/mixedfeed

A PHP library to get social networks feeds and merge them

11130.4k](/packages/rezozero-mixedfeed)[gourmet/social-meta

Adds Facebook Open Graph and Twitter Cards support to CakePHP 3.x

255.1k](/packages/gourmet-social-meta)

PHPackages © 2026

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