1. Go to this page and download the library: Download vedebel/sitemap 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/ */
vedebel / sitemap example snippets
$client = new GuzzleHttp\Client();
$parser = new Symfony\Component\DomCrawler\Crawler();
$storage = new vedebel\sitemap\BasicLinksStorage();
$generator = new vedebel\sitemap\Sitemap($parser, $storage, $url, ['limit' => 200, 'debug' => 1]);
$generator->setLoader($client);
$generator->crawl();
$generator->saveXml('sitemap.xml');