PHPackages                             gptinker/laravel-google-merchant - 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. gptinker/laravel-google-merchant

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

gptinker/laravel-google-merchant
================================

A sample Laravel package to manage products on Google merchant center

1.4(1y ago)08MITPHP

Since Dec 10Pushed 1y ago1 watchersCompare

[ Source](https://github.com/gptinker/laravel-google-merchant)[ Packagist](https://packagist.org/packages/gptinker/laravel-google-merchant)[ RSS](/packages/gptinker-laravel-google-merchant/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

Google Merchant Center APIs for Laravel
=======================================

[](#google-merchant-center-apis-for-laravel)

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

[](#installation)

```
composer require gptinker/google-merchant
```

Setup
-----

[](#setup)

##### 1. Add Variable given below to .env file

[](#1-add-variable-given-below-to-env-file)

```
GOOGLE_MERCHANT_ID="1234567890"
GOOGLE_MERCHANT_TARGET_COUNTRY="AE"
GOOGLE_MERCHANT_CONTENT_LANGUAGE="en"
GOOGLE_MERCHANT_CHANNEL="online"
```

##### 2. Store your credentials JSON file in **storage/json** folder named **google-merchant-credentials.json**

[](#2-store-your-credentials-json-file-in-storagejson-folder-named-google-merchant-credentialsjson)

```
storage/json/google-merchant-credentials.json
```

Usage
-----

[](#usage)

```
use Gptinker\GoogleMerchant\Facades\ProductApi;
```

#### 1. Fetch Products

[](#1-fetch-products)

```
$response = ProductApi::fetch();

if($response['status'] == 'success'){
    // Success
}else{
    // Error
}
```

#### 2. Insert Product

[](#2-insert-product)

The request body contains an instance of [Product](https://developers.google.com/shopping-content/reference/rest/v2.1/products#Product)

```
$response = ProductApi::insert($product);

if($response['status'] == 'success'){
    // Success
}else{
    // Error
}
```

#### 3. Get Product

[](#3-get-product)

```
$product_id = Same id used in "offerId" while insertion
```

```
$response = ProductApi::get($product_id);

if($response['status'] == 'success'){
    // Found
}else{
    // Not Found
}
```

#### 4. Update Product

[](#4-update-product)

The request body contains an instance of [Product](https://developers.google.com/shopping-content/reference/rest/v2.1/products#Product)

```
$product_id = Same id used in "offerId" while insertion
```

```
$response = ProductApi::update($product, $product_id);

if($response['status'] == 'success'){
    // Success
}else{
    // Error
}
```

#### 5. Delete Product

[](#5-delete-product)

```
$product_id = Same id used in "offerId" while insertion
```

```
$response = ProductApi::delete($product_id);

if($response['status'] == 'success'){
    // Success
}else{
    // Error
}
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 75% 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

516d ago

### Community

Maintainers

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

---

Top Contributors

[![gptinker](https://avatars.githubusercontent.com/u/191117441?v=4)](https://github.com/gptinker "gptinker (6 commits)")[![gurpreet-dev](https://avatars.githubusercontent.com/u/37020253?v=4)](https://github.com/gurpreet-dev "gurpreet-dev (2 commits)")

### Embed Badge

![Health badge](/badges/gptinker-laravel-google-merchant/health.svg)

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

###  Alternatives

[ralouphie/getallheaders

A polyfill for getallheaders.

3.8k872.8M87](/packages/ralouphie-getallheaders)[cmixin/business-day

Carbon mixin to handle business days

3944.8M8](/packages/cmixin-business-day)[kzykhys/php-csv-parser

Convert CSV to array (Excel style is fully suppoted!)

57264.0k5](/packages/kzykhys-php-csv-parser)[conquer/codemirror

Yii2 codemirror widget

36281.5k3](/packages/conquer-codemirror)

PHPackages © 2026

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