PHP code example of padosoft / laravel-google-structured-data-testing-tool

1. Go to this page and download the library: Download padosoft/laravel-google-structured-data-testing-tool 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/ */

    

padosoft / laravel-google-structured-data-testing-tool example snippets


// app/console/Kernel.php

protected function schedule(Schedule $schedule)
{
    ...
	$schedule->command('google-markup:test "/path/to/my/url.txt" --mail=mymail@mydomain')
            ->daily()
            ->withoutOverlapping()
            ->sendOutputTo(Config::get('laravel-google-structured-data-testing-tool.logFilePath'));
}
 php
// config/app.php
'provider' => [
    ...
    Padosoft\Laravel\Google\StructuredDataTestingTool\GoogleStructuredDataTestToolServiceProvider::class,
    ...
];
 bash
php artisan vendor:publish --provider="Padosoft\Laravel\Google\StructuredDataTestingTool\GoogleStructuredDataTestToolServiceProvider"
bash
php artisan google-markup:test https://www.padosoft.com
bash
php google-markup:test https://www.padosoft.com [email protected]
bash
php artisan google-markup:test https://www.padosoft.com
bash
php artisan google-markup:test https://www.padosoft.com --mail=mymail@mydomain