- What is moirei/laravel-google-merchant-api used for?
- It is a Laravel-native API wrapper for Google Merchant API and Google Shopping. It is intended to help a Laravel app manage Google Merchant Center accounts, product listings, and feeds through an expressive PHP interface. Treat it as an outbound adapter for pushing catalog data to Google, not as a full product information management or feed-governance system.
- How do I install and configure moirei/laravel-google-merchant-api?
- Install it with Composer using composer require moirei/laravel-google-merchant-api, then publish any package configuration and supply your Google Merchant Center credentials. The package description points to Laravel-friendly configuration and service account authentication, so expect to provide a service account JSON file and merchant account identifier. Confirm the exact config keys, environment variables, and credential scopes in the package README before wiring it into production.
- Does it support service account authentication for Google Merchant Center?
- The package blurb explicitly mentions service account authentication, which is the preferred model for server-to-server Laravel integrations. You should still verify whether it also supports OAuth or user-based credentials if your organization needs those flows. For production, create a dedicated service account with least-privilege access to the relevant Merchant Center account.
- Which Laravel and PHP versions does laravel-google-merchant-api support?
- The provided package information does not list supported Laravel or PHP version constraints, so check composer.json and the README before installing. Run a quick compatibility spike against your application's exact Laravel and PHP versions. If the package lags your framework version, isolate it in a proof-of-concept branch rather than merging it into the main catalog domain.
- Can it manage multiple Google Merchant Center accounts or storefronts?
- The available context does not confirm multi-merchant or multi-tenant support, and the technical assessment flags unclear handling of merchant account boundaries. Verify whether credentials and merchant IDs can be supplied per tenant or storefront. If you need multi-tenant marketplaces, design an application-owned gateway that selects credentials per account instead of assuming a single global merchant account.
- Does it support batch product inserts, inventory updates, and price sync?
- The overview mentions product listings and feeds, but the technical assessment warns that coverage may be a narrow product CRUD slice. Confirm whether the package supports batch product operations, inventory, pricing, local availability, and delete/update semantics. If coverage is limited, budget for custom payload mapping and sync orchestration in your Laravel application.
- How should I test this package before using it in production?
- Start with a non-production Merchant Center account and a small product subset. Build a read-only or dry-run sync first and compare generated payloads against Google's validation responses before enabling create or update operations. Wrap the package behind an application-owned interface and use contract tests with fake HTTP responses so you can verify error handling without hitting Google.
- Is moirei/laravel-google-merchant-api production-ready?
- It is MIT licensed and easy to install via Composer, but the low star count and zero dependents mean limited production evidence. The main risks are dependency maturity, Google Merchant API drift, silent partial failures, and weak retry or idempotency support. Use it behind an internal gateway contract, add reconciliation against Google Merchant Center, and keep your legacy feed running in parallel until the pilot proves stable.
- How does it handle Google Merchant API rate limits, retries, and idempotency?
- The available package information does not document rate-limit, retry, or idempotency behavior, so verify this in the source and README. Plan application-level retry with backoff, idempotent upsert logic, and logging for partial failures. Monitor Google Merchant Center quotas and disapproval reasons during the pilot.
- What are alternatives if laravel-google-merchant-api is abandoned or insufficient?
- You can replace it with the official Google SDK or direct HTTP calls to the Google Merchant API. Other Laravel wrappers or a custom adapter may also fit, but the key is to keep an application-owned MerchantCatalogGateway interface and contract tests. That escape path lets you swap the package without rewriting catalog business logic.