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

ActiveLibrary[API Development](/categories/api)

lukesnowden/google-shopping-feed
================================

Google Shopping Feed API

2.2.12(2y ago)70293.2k↓50.4%58[7 issues](https://github.com/lukesnowden/google-shopping-feed/issues)[5 PRs](https://github.com/lukesnowden/google-shopping-feed/pulls)MITPHPPHP &gt;=5.3.0

Since Feb 16Pushed 2y ago4 watchersCompare

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

READMEChangelog (10)Dependencies (1)Versions (29)Used By (0)

Google Shopping Feed
====================

[](#google-shopping-feed)

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/ca027a80612f4534beeae3e785ca98a3a78b0d8b1255e86ed7559a05f250ba31/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c756b65736e6f7764656e2f676f6f676c652d73686f7070696e672d666565642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lukesnowden/google-shopping-feed)

### Composer

[](#composer)

How to install with composer.

```
{
    "require": {
        "lukesnowden/google-shopping-feed": "^2.2"
    }
}
```

### Usage

[](#usage)

Example of Google feed generation.

```
use LukeSnowden\GoogleShoppingFeed\Containers\GoogleShopping;

GoogleShopping::title('Test Feed');
GoogleShopping::link('http://example.com/');
GoogleShopping::description('Our Google Shopping Feed');

foreach( $products as $product ) {

	$item = GoogleShopping::createItem();
	$item->id($id);
	$item->title($title);
	$item->price($price);
	$item->mpn($SKU);
	$item->sale_price($salePrice);
	$item->link($link);
	$item->image_link($imageLink);
	...
	...

	/** create a variant */
	$variant = $item->variant();
	$variant->size($variant::LARGE);
	$variant->color('Red');

	/**
	 * One thing to note, if creating variants, delete the initial object after you've done,
	 * Google no longer needs it!
	 *
	 * $item->delete();
	 *
	 */

}

// boolean value indicates output to browser
GoogleShopping::asRss(true);
```

### Category Taxonomies

[](#category-taxonomies)

Returns a list of the categories. The list is updated daily from Googles Documentation

```
$lang = 'gb';
$googleCategories = GoogleShopping::categories($lang);
```

`$lang` can be one of these Google supported languages: au, br, cn, cz, de, dk, es, fr, gb, it, jp, nl, no, pl, ru, sw, tr, us.

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity51

Moderate usage in the ecosystem

Community26

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~262 days

Total

28

Last Release

892d ago

Major Versions

1.2.0 → 2.0.02016-11-21

### Community

Maintainers

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

---

Top Contributors

[![lukesnowden](https://avatars.githubusercontent.com/u/8149079?v=4)](https://github.com/lukesnowden "lukesnowden (31 commits)")[![endelwar](https://avatars.githubusercontent.com/u/28512?v=4)](https://github.com/endelwar "endelwar (5 commits)")[![annuh](https://avatars.githubusercontent.com/u/2487949?v=4)](https://github.com/annuh "annuh (3 commits)")[![neeo](https://avatars.githubusercontent.com/u/3707584?v=4)](https://github.com/neeo "neeo (3 commits)")[![dmaksimov](https://avatars.githubusercontent.com/u/497369?v=4)](https://github.com/dmaksimov "dmaksimov (3 commits)")[![alexkvak](https://avatars.githubusercontent.com/u/1052418?v=4)](https://github.com/alexkvak "alexkvak (2 commits)")[![rasim](https://avatars.githubusercontent.com/u/983327?v=4)](https://github.com/rasim "rasim (2 commits)")[![SvanThuijl](https://avatars.githubusercontent.com/u/2386327?v=4)](https://github.com/SvanThuijl "SvanThuijl (2 commits)")[![nexxome](https://avatars.githubusercontent.com/u/2526962?v=4)](https://github.com/nexxome "nexxome (1 commits)")[![philipdbrown](https://avatars.githubusercontent.com/u/1117499?v=4)](https://github.com/philipdbrown "philipdbrown (1 commits)")[![pmhou](https://avatars.githubusercontent.com/u/4292357?v=4)](https://github.com/pmhou "pmhou (1 commits)")[![timlenton](https://avatars.githubusercontent.com/u/339873?v=4)](https://github.com/timlenton "timlenton (1 commits)")[![Topbor](https://avatars.githubusercontent.com/u/57596384?v=4)](https://github.com/Topbor "Topbor (1 commits)")[![chrisGeonet](https://avatars.githubusercontent.com/u/26768577?v=4)](https://github.com/chrisGeonet "chrisGeonet (1 commits)")[![east2dd](https://avatars.githubusercontent.com/u/790329?v=4)](https://github.com/east2dd "east2dd (1 commits)")[![Fredyy90](https://avatars.githubusercontent.com/u/1572327?v=4)](https://github.com/Fredyy90 "Fredyy90 (1 commits)")[![it-can](https://avatars.githubusercontent.com/u/644288?v=4)](https://github.com/it-can "it-can (1 commits)")[![johanlerche](https://avatars.githubusercontent.com/u/33417081?v=4)](https://github.com/johanlerche "johanlerche (1 commits)")[![mikeburke-adz](https://avatars.githubusercontent.com/u/20209964?v=4)](https://github.com/mikeburke-adz "mikeburke-adz (1 commits)")[![mrhn](https://avatars.githubusercontent.com/u/5760050?v=4)](https://github.com/mrhn "mrhn (1 commits)")

---

Tags

google-shoppingphpapigooglefeedshoppingGoogle Shopping Feed

### Embed Badge

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

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

###  Alternatives

[statickidz/php-google-translate-free

Google Translate Free library for PHP

288277.7k9](/packages/statickidz-php-google-translate-free)[serpwow/google-search-results

Google Search Results PHP package via SerpWow.com

1931.8k1](/packages/serpwow-google-search-results)[jcf/geocode

Google Geocoding API for Laravel

50162.8k](/packages/jcf-geocode)[ozankurt/google-analytics

Laravel Google Analytics

7617.2k](/packages/ozankurt-google-analytics)[skeeks/yii2-google-api

Component for work with google api based on google/apiclient

1143.8k1](/packages/skeeks-yii2-google-api)

PHPackages © 2026

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