spatie/laravel-sitemap
Generate XML sitemaps for Laravel by crawling your site or building them manually. Add extra URLs, set last-modified dates, and include models via a simple interface. Write sitemaps to disk with a fluent, developer-friendly API.
addAlternate) for international sites without duplicating infrastructure.execute_javascript) for comprehensive SEO coverage.addNews) for publishers.Avoid if:
next-sitemap, gatsby-plugin-sitemap).execute_javascript).sitemap.xml generators for Node.js/Python may be more accessible).Consider alternatives if:
django-sitemap or JavaScript libraries)."This package automates SEO-critical sitemap generation for our Laravel apps, reducing manual effort by 80% while improving search visibility. It supports dynamic content, multilingual sites, and JavaScript-rendered pages—key for our [content/regional expansion] goals. With minimal dev lift, we can ensure Google indexes all critical pages, directly impacting organic traffic and lead gen. The MIT license and Spatie’s track record (2.6K stars) ensure reliability."
*"Spatie’s Laravel Sitemap package lets us:
Sitemapable interface for zero-boilerplate sitemap entries.*"This tool ensures every new page, blog post, or product launch is automatically added to our sitemap—no more forgotten URLs! We can:
/en, /fr alternates)./admin).How can I help you explore Laravel packages today?