Skip to content

smogun/SitemapManagerPHP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

SitemapManagerPHP

Class for managing web site's sitemaps.

This class allows to automatically insert new URLs in to sitemaps. It manages sitemap_index.xml and fills it with sitemap files.

  • Each sitemap file is limited to either 50K urls or 10Mb size.
  • Each sitemap file being compressed.
  • Sitemap file name format is "sitemap#.xml.gz" eg: sitemap1.xml.gz, sitemap2.xml.gz ...

Usage:

include('SitemapManager.php');

$sitemapManager = new SitemapManager();

$sitemapManager->addNewUrlToSitemap("http://mywebsite.com/somepage.php?arg1=aaa&arg2=bbb");

Debugging:

$sitemapManager->printDebug = true;

About

Class for managing web site's sitemaps.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages