PHPackages                             wearepixel/laravel-facebook-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. wearepixel/laravel-facebook-feed

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

wearepixel/laravel-facebook-feed
================================

Laravel Facebook Feed

2.0.0(2y ago)02.1k[13 PRs](https://github.com/wearepixel/laravel-facebook-feed/pulls)MITPHPCI passing

Since Jan 17Pushed 1w agoCompare

[ Source](https://github.com/wearepixel/laravel-facebook-feed)[ Packagist](https://packagist.org/packages/wearepixel/laravel-facebook-feed)[ Docs](https://github.com/wearepixel/laravel-facebook-feed)[ RSS](/packages/wearepixel-laravel-facebook-feed/feed)WikiDiscussions master Synced yesterday

READMEChangelog (4)Dependencies (2)Versions (18)Used By (0)

Laravel Facebook Feed
=====================

[](#laravel-facebook-feed)

[![Latest Version on Packagist](https://camo.githubusercontent.com/069f342599342ab6a8589c10448a65874edb69b7537124b0fbedafb40dea8bcf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7765617265706978656c2f6c61726176656c2d66616365626f6f6b2d666565642e737667)](https://packagist.org/packages/wearepixel/laravel-facebook-feed)[![Tests](https://camo.githubusercontent.com/8f7a4984194c9c567c2342bdd29247aca610f071dc32172ccb3df149b1a7efe6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7765617265706978656c2f6c61726176656c2d66616365626f6f6b2d666565642f74657374732e796d6c3f6c6162656c3d7465737473)](https://github.com/wearepixel/laravel-facebook-feed/actions/workflows/tests.yml)[![PHP Version](https://camo.githubusercontent.com/2c0f4f3e120fb5a3ac8908ea0af941bc37c688a383cc1041345daa676c704d36/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7765617265706978656c2f6c61726176656c2d66616365626f6f6b2d666565642e737667)](https://packagist.org/packages/wearepixel/laravel-facebook-feed)[![Total Downloads](https://camo.githubusercontent.com/9398f65a5ae1f80ea161954ae93228bb37fbf9a26f12180b0fe4fbc64f7f81ea/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7765617265706978656c2f6c61726176656c2d66616365626f6f6b2d666565642e737667)](https://packagist.org/packages/wearepixel/laravel-facebook-feed)[![License](https://camo.githubusercontent.com/4d448ed0bdcfed7e92ca07e29db3d5196b222a621bd80e4ce18b13be07993489/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7765617265706978656c2f6c61726176656c2d66616365626f6f6b2d666565642e737667)](https://packagist.org/packages/wearepixel/laravel-facebook-feed)

A simple package to easily create an XML feed for the Facebook Catalog API to parse and retrieve your products.

We recommend adding this to an API controller and generating it on the fly so your feed is always up to date.

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

[](#requirements)

- PHP 8.4+
- Laravel 10, 11, or 12

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

[](#installation)

```
composer require wearepixel/laravel-facebook-feed
```

Usage
-----

[](#usage)

```
use Wearepixel\LaravelFacebookFeed\LaravelFacebookFeed;

$feed = LaravelFacebookFeed::init(
    title: 'My Store',
    description: 'My store product feed',
    link: 'https://mystore.com',
);

$feed->addItem([
    'id'         => 'item_001',
    'title'      => 'Blue Nikes',
    'link'       => 'https://mystore.com/products/blue-nikes',
    'price'      => '29.99 AUD',
    'image_link' => 'https://mystore.com/images/blue-nikes-001.jpg',
]);

return $feed->generate();
```

### Required item fields

[](#required-item-fields)

FieldDescription`id`Unique product identifier`title`Product name`link`URL to the product page`price`Price including currency code (e.g. `29.99 AUD`)`image_link`URL to the main product imageAny additional fields supported by the [Facebook Product Feed Specification](https://www.facebook.com/business/help/120325381656392) can be passed alongside the required fields.

### Methods

[](#methods)

**`LaravelFacebookFeed::init(string $title, string $description, string $link): static`**

Creates a new feed instance with channel metadata.

**`$feed->addItem(array $item): void`**

Adds a product to the feed. Throws `MissingRequiredFieldException` if any required field is absent.

**`$feed->toXml(): string`**

Returns the feed as an XML string.

**`$feed->generate(): Response`**

Returns an HTTP response with the XML content and `application/rss+xml` content type. Suitable for returning directly from a controller.

Testing
-------

[](#testing)

```
composer test
```

License
-------

[](#license)

MIT

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance64

Regular maintenance activity

Popularity18

Limited adoption so far

Community6

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

Total

2

Last Release

907d ago

Major Versions

1.0.2 → 2.0.02024-01-07

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/80378407?v=4)[Pixel](/maintainers/wearepixel)[@wearepixel](https://github.com/wearepixel)

---

Top Contributors

[![joelwmale](https://avatars.githubusercontent.com/u/3906839?v=4)](https://github.com/joelwmale "joelwmale (14 commits)")

---

Tags

laravellaravel-facebook-feed

### Embed Badge

![Health badge](/badges/wearepixel-laravel-facebook-feed/health.svg)

```
[![Health](https://phpackages.com/badges/wearepixel-laravel-facebook-feed/health.svg)](https://phpackages.com/packages/wearepixel-laravel-facebook-feed)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[vinkius-labs/laravel-page-speed

Laravel Page Speed

2.5k12.5k1](/packages/vinkius-labs-laravel-page-speed)[emargareten/inertia-modal

Inertia Modal is a Laravel package that lets you implement backend-driven modal dialogs for Inertia apps.

90142.9k](/packages/emargareten-inertia-modal)[wearepixel/laravel-cart

A cart implementation for Laravel

1374.8k](/packages/wearepixel-laravel-cart)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.4k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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