descom / descommarket-feeds
DescomMarket Feeds
1.5.1
2023-05-26 11:36 UTC
Requires
- php: ^8.0
- descom/descommarket_common: ^1.0
- google/apiclient: ^2.12.1
- illuminate/console: *
- illuminate/database: *
- laravel/framework: ^9.0|^10.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.4
- guzzlehttp/guzzle: ^7.5
- nunomaduro/larastan: ^2.0
- orchestra/testbench: ^7.5|^8.0
- phpstan/phpstan: ^1.2
- phpunit/phpunit: ^9.3
README
GOOGLE_API_CREDENTIALS_PATH= GOOGLE_MERCHANT_ID= GOOGLE_MERCHANT_QUEUE_CONNECTION=sync GOOGLE_MERCHANT_QUEUE_TRIES=10 GOOGLE_INDEX_ENABLED= GOOGLE_INDEX_QUEUE_CONNECTION=sync GOOGLE_INDEX_QUEUE_TRIES=10
Add config
php artisan vendor:publish --provider="DescomMarket\Feeds\DescomMarketFeedsServiceProvider"
Google Indexer Url in Search Console
Automatically index your products in Google Search Console if dispatch event:
DescomMarket\Common\Events\Catalog\Products\ProductPublished
You can use this API to index your products in Google Search Console
use DescomMarket\Feeds\Google\Index\Services\EnqueueUrlService; EnqueueUrlService::publish($url); EnqueueUrlService::unpublish($url);
Or use events:
use DescomMarket\Common\Events\Urls\UrlCreated; use DescomMarket\Common\Events\Urls\UrlDeleted;