PHPackages                             jwcobb/laravel-google-product-categories - 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. jwcobb/laravel-google-product-categories

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

jwcobb/laravel-google-product-categories
========================================

Laravel Google Product Categories is a package for Laravel providing Google’s Product Categories.

v1.0.0(1y ago)081[4 PRs](https://github.com/jwcobb/laravel-google-product-categories/pulls)MITPHPPHP ^8.2CI passing

Since Nov 13Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/jwcobb/laravel-google-product-categories)[ Packagist](https://packagist.org/packages/jwcobb/laravel-google-product-categories)[ Docs](https://github.com/jwcobb/laravel-google-product-categories)[ GitHub Sponsors]()[ RSS](/packages/jwcobb-laravel-google-product-categories/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (1)Dependencies (12)Versions (6)Used By (0)

Laravel Google Product Categories is a package for Laravel providing Google’s Product Categories to your app.
=============================================================================================================

[](#laravel-google-product-categories-is-a-package-for-laravel-providing-googles-product-categories-to-your-app)

[![Latest Version on Packagist](https://camo.githubusercontent.com/b5c7ed088c5cead088992f9f226a096c93f208083804599864c454955b728e17/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a77636f62622f6c61726176656c2d676f6f676c652d70726f647563742d63617465676f726965732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jwcobb/laravel-google-product-categories)[![GitHub Tests Action Status](https://camo.githubusercontent.com/6b2c4d31f5e27a8484bcf106c546f5ea41fc53dff64846f5f357535b730b12e1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6a77636f62622f6c61726176656c2d676f6f676c652d70726f647563742d63617465676f726965732f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/jwcobb/laravel-google-product-categories/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/ac2a25eebb6210baf1cc16a257d5c33f702bf2802cb0417f41b1fed2c88972d3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6a77636f62622f6c61726176656c2d676f6f676c652d70726f647563742d63617465676f726965732f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/jwcobb/laravel-google-product-categories/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/5ba0be0f7f69dd2d50c960625440f54a1b366fe7f048f4ee0f2c803e3141d2cc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a77636f62622f6c61726176656c2d676f6f676c652d70726f647563742d63617465676f726965732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jwcobb/laravel-google-product-categories)

This package provides [migrations](database/migrations) and a [Model](src/Models/GoogleProductCategory.php) for [Google Product Categories](https://support.google.com/merchants/answer/6324436?hl=en) so that you can easily use them in your app.

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

[](#installation)

You can install the package via composer:

```
composer require jwcobb/laravel-google-product-categories
```

You can run the installer using:

```
php artisan google-product-categories:install
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="google-product-categories-migrations"
php artisan migrate
```

Usage
-----

[](#usage)

You can use `JWCobb\LaravelGoogleProductCategories\Models\GoogleProductCategory` directly or you may choose to extend it using your own model if you wish to add additional relationships.

```
namespace App\Models;

use JWCobb\LaravelGoogleProductCategories\Models\GoogleProductCategory;
use Illuminate\Database\Eloquent\Relations\HasMany;

class ProductCategory extends GoogleProductCategory
{
    protected $table = 'google_product_categories';

    public function products(): HasMany
    {
        return $this->hasMany(__CLASS__, 'product_category_id');
    }

}
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [J Cobb](https://github.com/jwcobb)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance64

Regular maintenance activity

Popularity11

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

590d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/21b2978556e16fd933c29698fc3ee28ee0ae32f7475affb2cff6e4fdb2f479cb?d=identicon)[jwcobb](/maintainers/jwcobb)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (5 commits)")[![jwcobb](https://avatars.githubusercontent.com/u/777522?v=4)](https://github.com/jwcobb "jwcobb (3 commits)")

---

Tags

laravelJ CobbGoogle Product Categories

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/jwcobb-laravel-google-product-categories/health.svg)

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

###  Alternatives

[spatie/laravel-data

Create unified resources and data transfer objects

1.8k33.0M880](/packages/spatie-laravel-data)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.3M42](/packages/spatie-laravel-pdf)[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

328482.0k25](/packages/codewithdennis-filament-select-tree)[nativephp/desktop

NativePHP for Desktop

38133.6k8](/packages/nativephp-desktop)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

124581.3k](/packages/worksome-exchange)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3913.7k](/packages/rawilk-profile-filament-plugin)

PHPackages © 2026

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