webchemistry/sitemap

There is no license information available for the latest version (v2.0.0) of this package.

v2.0.0 2019-12-28 12:58 UTC

This package is auto-updated.

Last update: 2024-11-02 13:37:58 UTC


README

$sitemap = new Sitemap();

$sitemap->add(
	new SitemapItem('http://example.com', new DateTime(), ChangeFrequency::ALWAYS(), 90)
);

echo $sitemap->toString()

Google news

$sitemap = new Sitemap();

$sitemap->add(new GoogleNewsItem(
	new SitemapItem('http://example.com'),
	'Example', 'en', 'Subject', new DateTime()
));

echo $sitemap->toString();