webchemistry / sitemap
Installs: 2 111
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
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: 2024-12-02 13:47:23 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();