mitydigital/statamic-xml-sitemap
A Statamic addon that generates XML sitemaps for your site, with support for multiple sitemaps, localization and automatic updates as content changes. Keep search engines informed and improve discoverability with minimal configuration.
hreflang alternates are an open question — do not gate a locale launch on this package alone until that is verified on staging.public/sitemap.xml or a bespoke generator, this package gives us a clean cutover path (staging, diff old vs. new URL sets, then swap). That is a risk-managed replacement rather than a leap of faith./sitemap.xml as a monitored production surface (uptime check for HTTP 200 + application/xml, plus a periodic URL-count assertion to catch silent shrink). Budget half a day per Statamic major upgrade for smoke-testing.hreflang guarantees, no image/news/video sitemap extensions out of the box, no vendor SLA, no commercial support tier. If a roadmap item depends on any of those, it is our work, not the package's — decide that up front rather than discovering it in a launch retro.Consider it when:
Look elsewhere when:
hreflang, image/video/news sitemaps, or automatic sitemap-index sharding at scale. Those are build items, and a heavier-weight or commercial solution may be a better fit./sitemap.xml route, a stale static file in public/, or a competing SEO addon. Resolve the conflict before considering adoption, not after.To executives: This closes a search-visibility gap for roughly a day of engineering and zero licensing cost. It ensures search engines can discover every page we publish — including new content types and new locales — without anyone remembering to do anything. The risk is deliberately bounded: it is a config-and-one-route change, it touches no customer data and no transaction path, and because we keep our configuration in our own codebase it can be swapped or forked in a day if the maintainer disappears. The only real exposure is a temporary dip in indexed coverage if the endpoint breaks, which we mitigate with a single uptime monitor.
To engineering: composer require, auto-discovered service provider, publishable config, one route, no schema, no queues, no template changes. Pin ^3.5 and take 3.5.1 — a one-line patch that filters empty results and removes a known class of malformed-output false positives. Three non-obvious things to put in the runbook: a static file in public/ will shadow the route and make the install look inert; cache invalidation on publish/unpublish (and multi-site propagation) is the most likely cause of stale output, so bypass Statamic's static cache, the CDN, and any response cache before touching config; and the empty-result filter can mask a genuine misconfiguration, so compare CP entry counts against XML URL counts after config changes. Treat the endpoint as production-monitored and re-smoke-test it on every Statamic major — that is the entire maintenance bill.
How can I help you explore Laravel packages today?