Super simple sitemap creator writen in PHP
Create an object from SitemapCreator class and call Create function like that:
$creator = new SitemapCreator();
$sitemap = $creator->Create("https://github.com", 50);
In this example we created sitemap of https://github.com with maximum 50 links. Check examples for fully working code.