PHPackages                             wearepixel/laravel-google-shopping-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. wearepixel/laravel-google-shopping-feed

ActiveLibrary[API Development](/categories/api)

wearepixel/laravel-google-shopping-feed
=======================================

Laravel Google Shopping Feed

5.1.1(2mo ago)629.8k↓23.5%7[14 PRs](https://github.com/wearepixel/laravel-google-shopping-feed/pulls)MITPHPPHP &gt;=8.4CI passing

Since Jun 6Pushed 1w agoCompare

[ Source](https://github.com/wearepixel/laravel-google-shopping-feed)[ Packagist](https://packagist.org/packages/wearepixel/laravel-google-shopping-feed)[ Docs](https://github.com/wearepixel/laravel-google-shopping-feed)[ RSS](/packages/wearepixel-laravel-google-shopping-feed/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (8)Versions (24)Used By (0)

[![Laravel Google Shopping Feed](docs/laravel-google-shopping-feed.png)](docs/laravel-google-shopping-feed.png)

[![Latest Version on Packagist](https://camo.githubusercontent.com/c2f7d94d1380e8cfbda5d6aeb9c49ffa8189e2eea6cb9b999ba2de3c09516311/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7765617265706978656c2f6c61726176656c2d676f6f676c652d73686f7070696e672d666565642e737667)](https://packagist.org/packages/wearepixel/laravel-google-shopping-feed)[![Tests](https://camo.githubusercontent.com/2a3e8235a9532a8155b361b11a7653ce0dd187a619dd2510c79796bbb5ccd07e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7765617265706978656c2f6c61726176656c2d676f6f676c652d73686f7070696e672d666565642f74657374732e796d6c3f6c6162656c3d7465737473)](https://github.com/wearepixel/laravel-google-shopping-feed/actions/workflows/tests.yml)[![PHP Version](https://camo.githubusercontent.com/068fb732ce0c2aa8ab57e7055bdb0fec5bdbeb313f4035ae635d017d5d14df65/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7765617265706978656c2f6c61726176656c2d676f6f676c652d73686f7070696e672d666565642e737667)](https://packagist.org/packages/wearepixel/laravel-google-shopping-feed)[![Total Downloads](https://camo.githubusercontent.com/3eeaef7609a82fee0966cdb47332f3b4e9ef9757ec1536a66f5a0edf0df3fab3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7765617265706978656c2f6c61726176656c2d676f6f676c652d73686f7070696e672d666565642e737667)](https://packagist.org/packages/wearepixel/laravel-google-shopping-feed)[![License](https://camo.githubusercontent.com/7ebf9df294cfae78612d30e0758f388406ba8014ace1873d20a08ef71e6a9c70/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7765617265706978656c2f6c61726176656c2d676f6f676c652d73686f7070696e672d666565642e737667)](https://packagist.org/packages/wearepixel/laravel-google-shopping-feed)

A simple package to easily create an XML feed for Google Merchant Center 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-google-shopping-feed
```

Usage
-----

[](#usage)

```
use Wearepixel\LaravelGoogleShoppingFeed\LaravelGoogleShoppingFeed;

$feed = LaravelGoogleShoppingFeed::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',
    'g:price'      => '29.99 AUD',
    'g: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`g:price`Price including currency code (e.g. `29.99 AUD`)`g:image_link`URL to the main product imageAny additional fields supported by the [Google Product Data Specification](https://support.google.com/merchants/answer/7052112) can be passed alongside the required fields.

### Methods

[](#methods)

**`LaravelGoogleShoppingFeed::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

58

—

FairBetter than 98% of packages

Maintenance91

Actively maintained with recent releases

Popularity36

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity76

Established project with proven stability

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

Recently: every ~297 days

Total

8

Last Release

84d ago

Major Versions

1.1.1 → 2.0.12023-01-03

2.0.1 → 3.0.02023-01-05

3.0.0 → 4.0.02024-01-07

4.0.0 → 5.0.02026-01-05

PHP version history (2 changes)5.0.0PHP &gt;=8.3

5.1.0PHP &gt;=8.4

### 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 (27 commits)")

---

Tags

laravelGoogle Shopping Feed

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816333.6k3](/packages/defstudio-telegraph)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5021.9k](/packages/simplestats-io-laravel-client)[riclep/laravel-storyblok

A Laravel wrapper around the Storyblok API to provide a familiar experience for Laravel devs

6279.6k5](/packages/riclep-laravel-storyblok)

PHPackages © 2026

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