webchemistry / sitemap
Installs: 2 228
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >= 7.2
- nette/utils: ^3.0.0
Requires (Dev)
- codeception/codeception: ^2.5
This package is auto-updated.
Last update: 2025-03-30 14:39:30 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();