PHPackages                             sergunik/google-shopping-category-parcer - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. sergunik/google-shopping-category-parcer

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

sergunik/google-shopping-category-parcer
========================================

Download Google Shopping Category, parse it and return as an array or json

v1.1(4y ago)4121MITPHPPHP ^7.2|^8.0

Since Feb 15Pushed 4y ago1 watchersCompare

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

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

[![Packagist Downloads](https://camo.githubusercontent.com/fed37a446b2f6800812d91e6a30374c10bbb465f3cef012c665979da0177abbe/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73657267756e696b2f676f6f676c652d73686f7070696e672d63617465676f72792d706172636572)](https://packagist.org/packages/sergunik/google-shopping-category-parcer)[![Scrutinizer build](https://camo.githubusercontent.com/431fa06876ffabacd4399f8760effebdcb2deda570bc75e00936f52f66c5b5a2/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f6275696c642f672f73657267756e696b2f676f6f676c652d73686f7070696e672d63617465676f72792d7061726365722f6d6173746572)](https://scrutinizer-ci.com/g/sergunik/google-shopping-category-parcer/build-status/master)[![Scrutinizer code quality](https://camo.githubusercontent.com/5603fc5fb826c255a1b38919a5f47264b92104ddc503b87a272dd481860bab78/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f7175616c6974792f672f73657267756e696b2f676f6f676c652d73686f7070696e672d63617465676f72792d7061726365722f6d6173746572)](https://scrutinizer-ci.com/g/sergunik/google-shopping-category-parcer/)[![Scrutinizer coverage (GitHub/BitBucket)](https://camo.githubusercontent.com/c3fc578aca65ae093d684427345f33329bec6c14f17af353419c6cdda640cf9e/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f73657267756e696b2f676f6f676c652d73686f7070696e672d63617465676f72792d7061726365722f6d6173746572)](https://scrutinizer-ci.com/g/sergunik/google-shopping-category-parcer/code-structure/master/code-coverage)

Google Shopping Category Parcer
===============================

[](#google-shopping-category-parcer)

Download Google Shopping Category, parse it and return as an array or json.

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

[](#installation)

```
composer require sergunik/google-shopping-category-parcer
```

Usage
-----

[](#usage)

```
use GSCP\GSCPService;

$service = new GSCPService();
$array = $service->toArray();
//or echo $service->toJson();
```

Or with parameters:

```
use GSCP\GSCPService;

$service = new GSCPService();
$service->setLocale('uk_UA') //or other format uk-UA
    ->setFilename('storage/my-local-file.txt') //if you want to specify cache file
    ->setColumns([ //these columns by default
        'id',
        'name',
        'parentId',
        'parents',
        'children',
    ])
    ->toArray();
```

Also you could setup parameters in constructor:

```
use GSCP\GSCPService;

$service = new GSCPService([
    'locale' => 'uk_UA',
    'filename' => 'storage/my-local-file.txt',
    'columns' => ['id', 'name']
]);
$service->toArray();
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 63.6% 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 ~93 days

Total

2

Last Release

1819d ago

PHP version history (2 changes)v1.0PHP ^7.2

v1.1PHP ^7.2|^8.0

### Community

Maintainers

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

---

Top Contributors

[![S-Topolnytskyi](https://avatars.githubusercontent.com/u/85738436?v=4)](https://github.com/S-Topolnytskyi "S-Topolnytskyi (7 commits)")[![sergunik](https://avatars.githubusercontent.com/u/1597431?v=4)](https://github.com/sergunik "sergunik (4 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sergunik-google-shopping-category-parcer/health.svg)

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

###  Alternatives

[mtdowling/jmespath.php

Declaratively specify how to extract elements from a JSON document

2.0k472.8M135](/packages/mtdowling-jmespathphp)[opis/closure

A library that can be used to serialize closures (anonymous functions) and arbitrary data.

2.6k230.0M284](/packages/opis-closure)[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k191.2M65](/packages/sabberworm-php-css-parser)[michelf/php-markdown

PHP Markdown

3.5k52.4M345](/packages/michelf-php-markdown)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)

PHPackages © 2026

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