Registry /
serialization / thepixeldeveloper-sitemap
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Sitemap
✓ use Thepixeldeveloper\Sitemap\Sitemap;
Create a sitemap and add a URL, then output XML.
use Thepixeldeveloper\Sitemap\Sitemap;
use Thepixeldeveloper\Sitemap\Url;
$sitemap = new Sitemap();
$url = new Url('https://example.com');
$url->setLastMod(new DateTime());
$sitemap->add($url);
echo $sitemap->toXML();
Debug
Known issues
No known issues recorded.
Audit
Dependencies
No dependency data recorded yet.