webchemistry / sitemap
Installs: 2 016
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-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();