Laravel XML Sitemap

Laravel XML Sitemap builds XML sitemaps out of plain objects. You compose the sitemap wherever it suits the application — a console command, a controller, a scheduled job — and the package renders the XML.

Entries carry everything the format allows: urls, images, hreflang alternates for multilingual sites, priority, change frequency and last modification date. Sitemap index files are supported too, for when one file is no longer enough.

The sitemap this site serves at /sitemap.xml — including its hreflang alternates between the Russian and English versions — is generated by this package.

Installation
composer require sergeybruhin/xml-sitemap