A simple Google News sitemap is generated on-the-fly for articles that were published in the last two days. Output is saved in cache or as a transient for fast reading and displaying on the front end.
-
Updated
Apr 12, 2024 - PHP
A simple Google News sitemap is generated on-the-fly for articles that were published in the last two days. Output is saved in cache or as a transient for fast reading and displaying on the front end.
Your friendly gem to produce Google News sitemap compatible xml file
PHP Class to generate a Google Sitemap in various formats (XML - list of URLs, images, news, and video sitemaps); it originally only supported XML. Rewritten from older PHP v5.6 code to v8.2 and retooled to use PHP's XMLWriter extension with about 100 less lines of code. On the dev side, it uses PHPUnit for unit testing.
Add a description, image, and links to the google-news-sitemap topic page so that developers can more easily learn about it.
To associate your repository with the google-news-sitemap topic, visit your repo's landing page and select "manage topics."