PHPackages                             accelasearch/google-merchant-validator - 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. accelasearch/google-merchant-validator

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

accelasearch/google-merchant-validator
======================================

Command-line validator for Google Merchant product feed

0.3(2y ago)11.2k1MITPHPPHP &gt;=7.4CI passing

Since Jan 26Pushed 6mo ago2 watchersCompare

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

READMEChangelog (3)Dependencies (2)Versions (5)Used By (0)

Google Merchant Validator [![](https://github.com/accelasearch/google-merchant-validator/actions/workflows/php-composer.yml/badge.svg)](https://github.com/accelasearch/google-merchant-validator/actions/workflows/php-composer.yml/badge.svg) [![](https://github.com/accelasearch/google-merchant-validator/actions/workflows/php-unit-test.yml/badge.svg)](https://github.com/accelasearch/google-merchant-validator/actions/workflows/php-unit-test.yml/badge.svg)
=======================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#google-merchant-validator--)

Command-line validator for Google Merchant product feed.

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

[](#installation)

Recommended installation is through Composer:

```
composer require accelasearch/google-merchant-validator
```

Manual installation is possible by cloning this repository:

```
git clone https://github.com/accelasearch/google-merchant-validator.git
cd google-merchant-validator
composer update
```

or by downloading it:

```
wget https://github.com/accelasearch/google-merchant-validator/archive/refs/heads/main.zip
unsip main.zip
cd google-merchant-validator
composer update
```

Usage
-----

[](#usage)

To check whether an XML file is a valid Google Merchant product feed run:

```
php bin/feed-validator.php
```

You will get an output similar to the one shown below, with additional information about items which are not valid:

```
Normalizing XML file at /home/marco/Scrivania/google-shopping-feed.xml... done in 0.037 seconds.
Validating content of file /home/marco/Scrivania/google-shopping-feed.xml... done in 0.069 seconds.
Found 547 items (invalid: 0).

```

By default report is shown only for invalid items. It is possible to force report for every item by running:

```
php bin/feed-validator.php path-to-xml-feed.xm
Normalizing XML file at /home/marco/Scrivania/google-shopping-feed.xml... done in 0.037 seconds.
Validating content of file /home/marco/Scrivania/google-shopping-feed.xml... done in 0.069 seconds.
Found 547 items (invalid: 0).
               1: valid
               2: valid
               ...
```

### Generating a PHAR File

[](#generating-a-phar-file)

It is possible to generate a PHAR archive by running:

```
php bin/compile-phar.php
```

which will produce a file named `bin/google-merchant-validator.phar` that can be distributed.

**Note**: when using a PHAR file path to the XML file must be provided as an absolute path:

```
php google-merchant-validator.phar /absolute/path/to/xml-feed.xml
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance47

Moderate activity, may be stable

Popularity20

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 91.7% 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 ~139 days

Total

3

Last Release

922d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bdf0331e590362eaf3a717eb9d4a83ad93599ceff80527fff014eb998a9f17a8?d=identicon)[marco-zanella](/maintainers/marco-zanella)

---

Top Contributors

[![marco-zanella](https://avatars.githubusercontent.com/u/9591069?v=4)](https://github.com/marco-zanella "marco-zanella (11 commits)")[![buggyzap](https://avatars.githubusercontent.com/u/14024456?v=4)](https://github.com/buggyzap "buggyzap (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/accelasearch-google-merchant-validator/health.svg)

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

PHPackages © 2026

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