jjok / xml-sitemap
Generate an XML sitemap.
Installs: 19
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/jjok/xml-sitemap
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2025-10-11 20:50:27 UTC
README
Generate an XML sitemap.
$sitemap = new \jjok\XmlSitemap\Sitemap();
$sitemap->addUrl(new \jjok\XmlSitemap\Url('http://www.example.com/'));
$sitemap->addUrl(new \jjok\XmlSitemap\Url('http://www.example.com/some-page', 0.6, '2013-06-28', 'hourly'));
header('Content-type: application/xml; charset=utf-8');
echo $sitemap->toString();
Run Tests
phpunit
Copyright (c) 2013 Jonathan Jefferies