PHP code example of yurcrm / sitemap-generator
1. Go to this page and download the library: Download yurcrm/sitemap-generator 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/ */
yurcrm / sitemap-generator example snippets
// $linksGenerator - PHP generator which returns SitemapUrl objects
$sitemapsCount = $sitemapGenerator->setSiteUrl('https://www.100yuristov.com')
->setFileSizeLimit(5*1024*1024)
->setLinksPerFileLimit(30_000)
->createFilesFromLinksGenerator($linksGenerator, self::TMP_SITEMAPS_FOLDER);