PHP code example of eventiva / craft-indexnow

1. Go to this page and download the library: Download eventiva/craft-indexnow 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/ */

    

eventiva / craft-indexnow example snippets

bash
# Submit pending URLs
php craft indexnow/submit

# Submit all live pages
php craft indexnow/submit/all