Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Shopping Merchant Products Laravel Package

google/shopping-merchant-products

PHP client for the Google Shopping Merchant Products API. Create, update, list, and delete Merchant Center product inputs, manage attributes and data sources, and integrate product catalog workflows into Laravel or any PHP app via generated Google API classes.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. buy on Google Shopping syndication. This package sets the marginal engineering cost of "build" close to zero for the API layer, which reframes the decision away from development cost and toward ongoing operations: catalog rule authoring, error remediation, and merchant support. If those are the real costs, buy a feed vendor; if they're not, this package makes building viable.
  • Feed-file architecture vs. API-driven catalog management. The alternative to this client is a scheduled CSV/XML fetch in Merchant Center. Choosing the API path unlocks per-product insert/update/delete, data-source-scoped targeting, and near-real-time price and availability changes — at the cost of owning retries, quotas, and reconciliation. That is a product decision about freshness expectations, not a technical one.
  • Roadmap item: Content API for Shopping migration. Google's older Content API is being superseded by Merchant API, of which this is the Products sub-API. Any roadmap that touches shopping feeds should treat this as the forward path and avoid net-new investment in the legacy surface.
  • Scope of the integration. Merchant API is split into modular packages (accounts, data_sources, inventories, reports, promotions, notifications, quota). This package alone will not complete a merchant integration — it informs how you slice the roadmap: products now, reports/promotions later, or a vendor until then.
  • Use cases worth scoping: pushing catalog changes on ProductSaved/ProductDeleted events from a Laravel app; bulk reconciliation jobs; self-serve merchant onboarding where a customer connects their own Merchant Center account; multi-market/multi-language catalog variants; supplemental product data layered over a primary feed.
  • Multi-tenant vs. single-account. Supporting per-merchant credentials and quota isolation is an architecture and pricing decision; the client's credential handling makes the single-account case trivial and the multi-tenant case tractable but not free.

When to Consider This Package

Adopt when:

  • You are on PHP/Laravel and the catalog of record lives in your own database — syncing from source of truth is the whole value.
  • You need per-product operations, not just a periodic full feed: incremental updates, deletions, price/stock freshness, data-source targeting.
  • You are already on Google Cloud or can operate a service account with domain-wide delegation for multi-merchant setups; Application Default Credentials via google/auth removes the auth work.
  • You want generated, typed request/response objects, pagination iterators, retry/backoff config, and both gRPC and REST transports instead of hand-rolling cURL against the REST docs.
  • You are willing to own a thin wrapper: pin the version, expose your own ProductPublisher interface, and treat the package as a replaceable adapter. With 2 stars and 0 dependents there is no community safety net; you are relying on Google's generator, not on ecosystem support.
  • Your team accepts generated-client lifecycle realities: frequent releases, occasional breaking behavior under minor versions, alpha/beta surfaces, and docs that are reference-style rather than tutorial-style.

Look elsewhere when:

  • A scheduled feed fetch satisfies the freshness requirement. A URL-hosted CSV/XML is dramatically fewer moving parts, no credentials in your app, and no quota to manage. This is the correct answer more often than teams admit.
  • You are not on PHP, or your hosting environment cannot carry grpc/protobuf extensions and you have not validated the REST fallback.
  • You need surfaces outside Products — Accounts, Data Sources, Inventories, Reports, Promotions — and are unwilling to adopt the sibling packages or call Merchant API directly.
  • You need feed transformation rules, category mapping, disapproval remediation workflows, or merchant-facing error UX. That is vendor territory; this client gives you raw API errors and nothing else.
  • Your procurement or architecture review requires community-vetted dependencies with independent maintainers. This package will not clear that bar, correctly or not.

How to Pitch It (Stakeholders)

To executives: This is Google's own Apache-2.0 PHP client for the Merchant API Products service — the successor to the Content API for Shopping. It is free, and it replaces what would otherwise be several weeks of custom HTTP, auth, retry, and pagination code with a dependency and a thin adapter. It also de-risks a known roadmap liability: Google is moving shopping integrations to Merchant API, and building on the generated client keeps us on the supported path. The cost is engineering time and a small amount of dependency ownership, not licensing. The honest caveat: it has effectively no community adoption, so we are betting on Google's release process rather than on an ecosystem. Mitigation is cheap — pin the version, isolate it behind an internal interface, and add contract tests.

To engineering: Treat it as a generated SDK, not a framework. Wire it through dependency injection behind a ProductPublisher-style port so domain code never imports the generated namespace; that keeps upgrades and a possible swap to direct REST calls to a single adapter. Use a service account with Application Default Credentials, prefer REST unless you have a measured reason for gRPC, and configure retries explicitly rather than relying on defaults. Add structured logging of request IDs and merchant account, and surface quota errors (quota package) as first-class product states — merchants will hit them. Do not fork it. Budget for version churn by pinning exact versions and upgrading on a schedule with contract tests against a sandbox merchant account. Expect to read the generated reference docs and the underlying REST documentation side by side; there are no tutorials.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
coleus/frame
thtg88/journalism
filagora/filagora-ai-forums
rlacerda83/query-parser
socialdept/atp-orm
cboxdk/laravel-assistant-client
socialdept/atp-resolver
socialdept/tenant-domains
tautvydasr/blade-class-names
socialdept/color-scales
maherelgamil/controller
coleus/widgets
coleus/table
coleus/users
coleus/music
coleus/health
coleus/calendar
coleus/notes
coleus/support
coleus/settings