PHP code example of mage2kishan / module-index-now
1. Go to this page and download the library: Download mage2kishan/module-index-now library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mage2kishan / module-index-now example snippets
┌────────────────────┐ save_after event ┌─────────────────────┐
│ Admin saves a │ ─────────────────────▶ │ EntityChangeObserver│
│ product / category │ │ │
│ / CMS page │ │ - resolves URL │
└────────────────────┘ │ - collects in batch │
│ - registers flush │
└──────────┬──────────┘
│
│ PHP shutdown
▼
┌─────────────────────┐
│ Submitter │
│ │
│ POST api.indexnow. │
│ org/IndexNow │
│ │
│ { │
│ host, key, │
│ keyLocation, │
│ urlList[] │
│ } │
└──────────┬──────────┘
│
▼
Bing, Yandex, Seznam,
Naver, Yep