PHP code example of hashbangcode / sitemap_checker
1. Go to this page and download the library: Download hashbangcode/sitemap_checker 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/ */
hashbangcode / sitemap_checker example snippets
use Hashbangcode\SitemapChecker\Crawler\GuzzlePromiseCrawler;
new \Hashbangcode\SitemapChecker\Crawler\GuzzleCrawler();
$crawler->setEngine($client);
// Create a URL.
$url = new \Hashbangcode\SitemapChecker\Url\Url('https://www.hashbangcode.com/');
// Crawl a single URL.
$result = $crawler->processUrl($url);
// Print result object.
print_r($result);
ini
xdebug.mode=coverage