stefandoorn / google-shopping-category-form-type-bundle
Form type to select a Google Shopping Category ID
Package info
github.com/stefandoorn/GoogleShoppingCategoryFormTypeBundle
Type:symfony-bundle
pkg:composer/stefandoorn/google-shopping-category-form-type-bundle
v1.5.0
2024-08-23 13:26 UTC
Requires
- php: ^7.4 || ^8.1
- symfony/form: ^4.0 || ^5.0 || ^6.0
- symfony/framework-bundle: ^4.0 || ^5.0 || ^6.0
Requires (Dev)
This package is auto-updated.
Last update: 2026-06-23 17:44:05 UTC
README
GoogleShoppingCategoryFormTypeBundle
Installation
composer require stefandoorn/google-shopping-category-form-type-bundle
Usage
In your form, use:
$builder->add('googleShoppingCategory', GoogleShoppingCategoryType::class);
The locale of the category list downloaded can be adjusted by injecting another locale into the downloader service:
google_shopping_category.downloader.category: class: StefanDoorn\GoogleShoppingCategoryFormTypeBundle\Downloader\GoogleShoppingCategoryList arguments: - 'nl_NL'