PHP code example of famdirksen / laravel-google-indexing

1. Go to this page and download the library: Download famdirksen/laravel-google-indexing 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/ */

    

famdirksen / laravel-google-indexing example snippets


LaravelGoogleIndexing::create()->update('https://www.my-domain.com')

LaravelGoogleIndexing::create()->delete('https://www.my-domain.com')

LaravelGoogleIndexing::update('https://www.my-domain.com')

LaravelGoogleIndexing::delete('https://www.my-domain.com')

LaravelGoogleIndexing::status('https://www.my-domain.com')

LaravelGoogleIndexing::multiplePublish([['URL_UPDATED' => 'https://www.site.com'], ['URL_DELETED' => 'https://www.site.com/deleted-url']])