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: 2020-03-28 13:39:02 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();