PHPackages                             metrique/google-product-taxonomy-php - 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. metrique/google-product-taxonomy-php

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

metrique/google-product-taxonomy-php
====================================

A PHP library providing Google product category data.

0.0.2(3y ago)020MITPHPPHP ^7.3|^8.0

Since May 26Pushed 3y ago1 watchersCompare

[ Source](https://github.com/metrique/google-product-taxonomy-php)[ Packagist](https://packagist.org/packages/metrique/google-product-taxonomy-php)[ RSS](/packages/metrique-google-product-taxonomy-php/feed)WikiDiscussions main Synced 4w ago

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

metrique/google-product-taxonomy-php
====================================

[](#metriquegoogle-product-taxonomy-php)

A PHP library providing Google Product Category data.

[![License](https://camo.githubusercontent.com/58dd9fbe37e4519113171c12ca0f55f74aad77ac40df59a480315a8e12ed5771/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d657472697175652f676f6f676c652d70726f647563742d7461786f6e6f6d792d7068702e737667)](https://camo.githubusercontent.com/58dd9fbe37e4519113171c12ca0f55f74aad77ac40df59a480315a8e12ed5771/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d657472697175652f676f6f676c652d70726f647563742d7461786f6e6f6d792d7068702e737667)

What is Google Product Category Data?
-------------------------------------

[](#what-is-google-product-category-data)

Google Product Category data is a library containing a copy of Google's continuously evolving product taxonomy. Providing high-quality, on-topic titles and descriptions, as well as accurate pricing, brand and GTIN information will help make sure that your products are correctly categorised.

> *-- [Google product category](https://support.google.com/merchants/answer/6324436?hl=en-GB)*

Installing
----------

[](#installing)

```
composer require metrique/google-product-taxonomy-php
```

Using
-----

[](#using)

Quick guide:

```
$data = (new Metrique\Taxonomy)->lookupId(1);
$data = (new Metrique\Taxonomy)->lookupCategory('Animals & Pet Supplies > Live Animals');
$data = (new Metrique\Taxonomy)->search('Pet Supplies');
```

Data sample:

```
[
    [
        'id' => 1,
        'category' => 'Animals & Pet Supplies',
    ],
    [
        'id' => 3237,
        'category' => 'Animals & Pet Supplies > Live Animals',
    ],
    [
        'id' => 2,
        'category' => 'Animals & Pet Supplies > Pet Supplies',
    ],
    [
        'id' => 3,
        'category' => 'Animals & Pet Supplies > Pet Supplies > Bird Supplies',
    ],
]
```

Updating:

This will import the latest plaintext taxonomy data from Google, and convert it to a php array in the temp folder.

```
composer import-taxonomy
```

Contributing
------------

[](#contributing)

Feel free to submit a pull request or create an issue.

License
-------

[](#license)

metrique/google-product-taxonomy is licensed under the MIT license.

Source(s)
---------

[](#sources)

- [Google product category](https://support.google.com/merchants/answer/6324436?hl=en-GB) by [Google](http://www.google.com)

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

Total

2

Last Release

1443d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7ce21c219de2c3d8cdc50da260a50446b8d3ff1a59d0fa401f14c5cdcce2f626?d=identicon)[ShinobiCorp](/maintainers/ShinobiCorp)

---

Top Contributors

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

---

Tags

googlecategoriesproductcategorytaxonomytaxonomies

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/metrique-google-product-taxonomy-php/health.svg)

```
[![Health](https://phpackages.com/badges/metrique-google-product-taxonomy-php/health.svg)](https://phpackages.com/packages/metrique-google-product-taxonomy-php)
```

###  Alternatives

[sonata-project/classification-bundle

Symfony SonataClassificationBundle

913.2M20](/packages/sonata-project-classification-bundle)[sylius/taxonomy-bundle

Flexible categorization system for Symfony.

26388.2k7](/packages/sylius-taxonomy-bundle)[aliziodev/laravel-taxonomy

Laravel Taxonomy is a flexible and powerful package for managing taxonomies, categories, tags, and hierarchical structures in Laravel applications. Features nested-set support for optimal query performance on hierarchical data structures.

23318.4k](/packages/aliziodev-laravel-taxonomy)

PHPackages © 2026

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