Download the PHP package mannu24/gmc-integration without Composer
On this page you can find all versions of the php package mannu24/gmc-integration. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download mannu24/gmc-integration
More information about mannu24/gmc-integration
Files in mannu24/gmc-integration
Download mannu24/gmc-integration
More information about mannu24/gmc-integration
Files in mannu24/gmc-integration
Vendor mannu24
Package gmc-integration
Short Description A comprehensive Laravel package for Google Merchant Center integration with product synchronization, batch processing, and automatic sync management.
License MIT
Homepage https://github.com/mannu24/google-merchant-center
Package gmc-integration
Short Description A comprehensive Laravel package for Google Merchant Center integration with product synchronization, batch processing, and automatic sync management.
License MIT
Homepage https://github.com/mannu24/google-merchant-center
Please rate this library. Is it a good library?
Informations about the package gmc-integration
Google Merchant Center Integration Package
A Laravel package for seamless Google Merchant Center product synchronization with independent tables and optional per-product sync control.
Installation
Setup
-
Publish config:
-
Publish migrations (optional):
-
Run the migrations:
-
Set environment variables:
- Add trait to your product model:
Database Structure
The package creates two independent tables:
gmc_products
Table
product_id
- Reference to your productproduct_type
- Model class name (e.g., 'App\Models\Product')sync_enabled
- Control sync per productgmc_product_id
- GMC's product IDgmc_last_sync
- Last sync timestampsync_status
- Current sync statuslast_error
- Last error message
gmc_sync_logs
Table
- Tracks all sync attempts
- Stores request/response data
- Performance metrics
- Error details
Features
- ✅ Independent tables - No modifications to your existing tables
- ✅ Clean model - All GMC methods are in the trait, keeping your model clean
- ✅ Optional per-product sync control - Enable/disable sync for individual products
- ✅ Manual syncing - Sync products when you want to
- ✅ Auto-sync on status change to inactive - Automatically sync when product becomes inactive
- ✅ Auto-sync on delete - Automatically remove from GMC when deleted
- ✅ Bulk operations with batch processing
- ✅ Error handling with retry logic and comprehensive logging
- ✅ Data validation before syncing
- ✅ Rate limiting to avoid API limits
- ✅ Cache protection against duplicate syncs
- ✅ Async processing for better performance
- ✅ Sync history tracking - Complete audit trail
Sync Behavior
Automatic Sync (Only on specific events)
- ✅ Status change to inactive - Syncs when
status
field changes to'inactive'
- ✅ Delete - Removes product from GMC when model is deleted
- ❌ Create - No automatic sync on product creation
- ❌ Update - No automatic sync on general updates
Manual Sync
Optional Per-Product Sync Control
Method 1: Using trait methods
Method 2: Override shouldSyncToGMC()
Usage Examples
Manual Syncing
Status Change Example
Working with GMC Data
Artisan Commands
Configuration Options
Advanced Features
Batch Processing
Error Handling
Sync History
Performance Optimizations
- Batch processing to handle large datasets efficiently
- Rate limiting to avoid API throttling
- Cache protection against duplicate syncs
- Async processing for better response times
- Retry logic for failed operations
- Memory efficient chunking for bulk operations
- Independent tables - No impact on your existing database performance
All versions of gmc-integration with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.0|^8.1|^8.2|^8.3
google/apiclient Version ^2.15
illuminate/support Version ^8.0|^9.0|^10.0|^11.0|^12.0
illuminate/database Version ^8.0|^9.0|^10.0|^11.0|^12.0
illuminate/console Version ^8.0|^9.0|^10.0|^11.0|^12.0
google/apiclient Version ^2.15
illuminate/support Version ^8.0|^9.0|^10.0|^11.0|^12.0
illuminate/database Version ^8.0|^9.0|^10.0|^11.0|^12.0
illuminate/console Version ^8.0|^9.0|^10.0|^11.0|^12.0
The package mannu24/gmc-integration contains the following files
Loading the files please wait ....