Skip to content
No description, website, or topics provided.
PHP
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
tests
.gitignore
README.md
codeception.yml
composer.json

README.md

Sitemap usage

$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();
You can’t perform that action at this time.