PHP code example of ivebe / sitemap-crawler

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

    

ivebe / sitemap-crawler example snippets




vebe\SitemapCrawler\Crawler;
use Ivebe\SitemapCrawler\SitemapService;
use Ivebe\SitemapCrawler\LinkCollection;

$config = apService($crawler, $collection);

$links = $provider->crawl($url);
$provider->export('monthly');