PHP code example of alc / sitemap-crawler
1. Go to this page and download the library: Download alc/sitemap-crawler 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/ */
alc / sitemap-crawler example snippets
use Alc\SitemapCrawler;
$crawler = new SitemapCrawler();
$data = $crawler->crawl('https://chemel.blog/sitemap.xml');
print_r($data);
bash
php crawl.php https://chemel.blog/sitemap.xml